summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/field.java
blob: bd0f7492e9f415d97f06b61e50e03cd32f7b3257 (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
// Test for array field lookup.

public class field
{
  // A field for us to look up.
  public Object[] F = new Object[7];

  public native Object[] fetch ();

  public void doit ()
  {
    System.out.println (F == fetch ());
  }

  public static void main (String[] args)
  {
    field q = new field ();
    q.doit ();
  }

  static
  {
    System.loadLibrary ("field");
  }
}