2007-02-13 Andrew Haley <aph@redhat.com>
[gcc.git] / libjava / testsuite / libjava.jni / register2.java
1 // Another test of RegisterNatives.
2 // We neglected to track the class name in our internal hash table.
3 // This is a regression test for the fix.
4
5 public class register2
6 {
7 static
8 {
9 System.loadLibrary ("register2");
10 }
11
12 static class I1
13 {
14 public static native int doit ();
15 }
16
17 static class I2
18 {
19 public static native int doit ();
20 }
21
22 public static void main (String[] args)
23 {
24 System.out.println (new I1().doit());
25 System.out.println (new I2().doit());
26 }
27 }