summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/virtual.java
blob: 496389ce5e3bb6cda306bebd71fccff09cd48226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Minimal test of a virtual method.

public class virtual
{
  static
  {
    System.loadLibrary ("virtual");
  }

  public native boolean equals (Object obj);

  public static void main (String[] args)
  {
    Object v = new virtual ();
    System.out.println (v.equals (v));
  }
}