gcc/libjava/testsuite/libjava.jni/findclass2.java
Marco Trudel 7896beb27a jni.cc (_Jv_JNI_FindClass): Initialize class.
2007-01-18  Marco Trudel  <mtrudel@gmx.ch>

	* jni.cc (_Jv_JNI_FindClass): Initialize class.
	* testsuite/libjava.jni/findclass2.jar: New file.
	* testsuite/libjava.jni/findclass2.h: New file.
	* testsuite/libjava.jni/findclass2.java: New file
	* testsuite/libjava.jni/findclass2.c: New file.
	* testsuite/libjava.jni/findclass2.out: New file.

From-SVN: r120930
2007-01-18 20:47:50 +00:00

25 lines
338 B
Java

// Test that FindClass initializes the class.
public class findclass2
{
public static class inner
{
static
{
System.out.println("hello");
}
}
public static native void searchClass();
static
{
System.loadLibrary("findclass2");
}
public static void main(String[] args)
{
searchClass();
}
}