fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / 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");