findclass.java: New file
* libjava.jni/findclass.java: New file * libjava.jni/findclass.c: New file * libjava.jni/findclass.out: New file From-SVN: r32011
This commit is contained in:
parent
4798472070
commit
04297fe74f
3 changed files with 29 additions and 0 deletions
16
libjava/testsuite/libjava.jni/findclass.java
Normal file
16
libjava/testsuite/libjava.jni/findclass.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Test FindClass part of JNI.
|
||||
|
||||
public class findclass
|
||||
{
|
||||
static
|
||||
{
|
||||
System.loadLibrary ("findclass");
|
||||
}
|
||||
|
||||
public static native Class doit (String name);
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
System.out.println ("" + doit ("java/lang/String"));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue