OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [iface.java] - Rev 765

Compare with Previous | Blame | View Log

// JNI calls via an interface method were broken in a couple releases.
 
interface mycomp
{
  int compareTo(Object x);
}
 
public class iface implements mycomp
{
  static
  {
    System.loadLibrary("iface");
  }
 
  public int compareTo (Object x)
  {
    System.out.println ("hi maude");
    return 3;
  }
 
  public native void doCalls(Object x);
 
  public static void main (String[] args)
  {
    new iface().doCalls(args);
  }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.