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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [martin.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
// Test case from Martin Kahlert <martin.kahlert@infineon.com>
2
 
3
public class martin {
4
  public native void myNative(String s);
5
 
6
  public void myJava(String s) {
7
    s = s + ", Java";
8
    System.out.println(s);
9
  }
10
 
11
  public static void main(String args[]) {
12
    martin x = new martin();
13
    x.myJava("Hello");
14
    x.myNative("Hello, Java (from C)");
15
    x.myJava("Goodbye");
16
  }
17
 
18
  static {
19
    System.loadLibrary("martin");
20
  }
21
}

powered by: WebSVN 2.1.0

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