gcc/libjava/testsuite/libjava.jni/noclass.java

19 lines
350 B
Java
Raw Normal View History

// Test to make sure JNI implementation catches exceptions.
public class noclass
{
static
{
System.loadLibrary ("noclass");
}
public static native void find_it ();
public static void main (String[] args)
{
find_it ();
// If find_it() causes a crash, we won't be running this next line.
System.out.println ("Ok");
}
}