7896beb27a
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
25 lines
338 B
Java
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();
|
|
}
|
|
}
|