mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 07:08:57 +08:00
73d7c68909
* libjava.jni/virtual.java: New file. * libjava.jni/virtual.c: New file. * libjava.jni/virtual.out: New file. * libjava.jni/final_method.java: New file. * libjava.jni/final_method.c: New file. * libjava.jni/final_method.out: New file. * libjava.jni/overload.java: New file. * libjava.jni/overload.c: New file. * libjava.jni/overload.out: New file. * libjava.jni/simple_int.java: New file. * libjava.jni/simple_int.c: New file. * libjava.jni/simple_int.out: New file. * libjava.jni/invoke.out: New file. * libjava.jni/invoke.c: New file. * libjava.jni/invoke.java: New file. From-SVN: r31996
18 lines
302 B
Java
18 lines
302 B
Java
// 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 ());
|
|
}
|
|
}
|