cxxtest.java 386 Bytes
Newer Older
Tom Tromey committed
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 cxxtest
{
  // 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)
  {
    cxxtest q = new cxxtest ();
    q.doit ();
  }

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