diff options
Diffstat (limited to 'libjava/testsuite/libjava.jni/final_method.java')
-rw-r--r-- | libjava/testsuite/libjava.jni/final_method.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.jni/final_method.java b/libjava/testsuite/libjava.jni/final_method.java new file mode 100644 index 0000000..dcb684e --- /dev/null +++ b/libjava/testsuite/libjava.jni/final_method.java @@ -0,0 +1,17 @@ +// Minimal test a non-static final method. + +public class final_method +{ + static + { + System.loadLibrary ("final_method"); + } + + public final native String meth (); + + public static void main (String[] args) + { + final_method fm = new final_method (); + System.out.println (fm.meth ()); + } +} |