blob: cfa1178f03ca64864af3db87db77bd43860a11e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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");
}
}
|