blob: 2d6c56a3b02a4cd9879bae36b1d9283a12f68dea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Another test of RegisterNatives.
// We neglected to track the class name in our internal hash table.
// This is a regression test for the fix.
public class register2
{
static
{
System.loadLibrary ("register2");
}
static class I1
{
public static native int doit ();
}
static class I2
{
public static native int doit ();
}
public static void main (String[] args)
{
System.out.println (new I1().doit());
System.out.println (new I2().doit());
}
}
|