fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libjava / testsuite / libjava.jni / throwit.java
blob459622d390fdff02d5e8e79e862d1cd85d1e298a
1 // Test to see if throw works.
3 public class throwit
5 static
7 System.loadLibrary ("throwit");
10 public static native void throwit (String name, boolean is_new);
12 public static void main (String[] args)
14 try
16 throwit ("java/lang/UnknownError", false);
18 catch (Throwable x)
20 System.out.println (x.getClass ());
21 System.out.println (x.getMessage ());
23 try
25 throwit ("java/lang/Throwable", true);
27 catch (Throwable x)
29 System.out.println (x.getClass ());
30 System.out.println (x.getMessage ());