MyClassNatives.java revision b9231c81fad1c9d85ea7e6db9120f872e3417380
1// Copyright 2011 Google Inc. All Rights Reserved.
2
3class MyClass {
4    native void throwException();
5    native void foo();
6    native int fooI(int x);
7    native int fooII(int x, int y);
8    native long fooJJ(long x, long y);
9    native Object fooO(Object x);
10    native double fooDD(double x, double y);
11    native Object fooIOO(int x, Object y, Object z);
12    static native Object fooSIOO(int x, Object y, Object z);
13    static native int fooSII(int x, int y);
14    static synchronized native Object fooSSIOO(int x, Object y, Object z);
15    static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length);
16}
17