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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [iface.java] - Blame information for rev 830

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

Line No. Rev Author Line
1 765 jeremybenn
// JNI calls via an interface method were broken in a couple releases.
2
 
3
interface mycomp
4
{
5
  int compareTo(Object x);
6
}
7
 
8
public class iface implements mycomp
9
{
10
  static
11
  {
12
    System.loadLibrary("iface");
13
  }
14
 
15
  public int compareTo (Object x)
16
  {
17
    System.out.println ("hi maude");
18
    return 3;
19
  }
20
 
21
  public native void doCalls(Object x);
22
 
23
  public static void main (String[] args)
24
  {
25
    new iface().doCalls(args);
26
  }
27
}

powered by: WebSVN 2.1.0

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