source: branches/libc-0.6/src/gcc/libjava/testsuite/libjava.jni/martin.java@ 2442

Last change on this file since 2442 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 433 bytes
Line 
1// Test case from Martin Kahlert <[email protected]>
2
3public 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}
Note: See TracBrowser for help on using the repository browser.