diff options
Diffstat (limited to 'libjava/testsuite/libjava.jni/noclass.java')
-rw-r--r-- | libjava/testsuite/libjava.jni/noclass.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.jni/noclass.java b/libjava/testsuite/libjava.jni/noclass.java new file mode 100644 index 0000000..cfa1178 --- /dev/null +++ b/libjava/testsuite/libjava.jni/noclass.java @@ -0,0 +1,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"); + } +} |