2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / testsuite / libjava.jni / noclass.java
blob7e0b8c34ccac070f3b847521b742a67fd85f05d3
1 // Test to make sure JNI implementation catches exceptions.
3 public class noclass
5 static
7 System.loadLibrary ("noclass");
10 public static native void find_it ();
12 public static void main (String[] args)
14 try
16 find_it ();
18 catch (Throwable _)
20 // If find_it() causes a crash, or doesn't throw an exception,
21 // we won't be running this next line.
22 System.out.println ("Ok");