Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
440 bytes
|
Line | |
---|
1 | // Test to make sure JNI implementation catches exceptions.
|
---|
2 |
|
---|
3 | public class noclass
|
---|
4 | {
|
---|
5 | static
|
---|
6 | {
|
---|
7 | System.loadLibrary ("noclass");
|
---|
8 | }
|
---|
9 |
|
---|
10 | public static native void find_it ();
|
---|
11 |
|
---|
12 | public static void main (String[] args)
|
---|
13 | {
|
---|
14 | try
|
---|
15 | {
|
---|
16 | find_it ();
|
---|
17 | }
|
---|
18 | catch (Throwable _)
|
---|
19 | {
|
---|
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");
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.