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

Subversion Repositories openrisc

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

Go to most recent revision | Compare with Previous | Blame | View Log

// 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());
  }
}
 

Go to most recent revision | 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.