summaryrefslogtreecommitdiffstats
path: root/test/MyClassNatives
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2011-09-06 15:27:45 -0700
committerShih-wei Liao <sliao@google.com>2011-09-12 10:50:34 -0700
commit31384c59bb4b387f29f2b6d4d3db886c29b81170 (patch)
treee6143162d188dd8f038e66edf1164f78b37922f8 /test/MyClassNatives
parentec5adf351879cb6235faf2c6c068c2553d85a7d2 (diff)
downloadart-31384c59bb4b387f29f2b6d4d3db886c29b81170.tar.gz
art-31384c59bb4b387f29f2b6d4d3db886c29b81170.tar.bz2
art-31384c59bb4b387f29f2b6d4d3db886c29b81170.zip
Generating stub code for registering a jni function at runtime.
On ARM and x86. Added a unit test. Change-Id: I6b1ee09ad18295108f406ce21d73555796ecbba6
Diffstat (limited to 'test/MyClassNatives')
-rw-r--r--test/MyClassNatives/MyClassNatives.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/MyClassNatives/MyClassNatives.java b/test/MyClassNatives/MyClassNatives.java
index c4e3791b73..3ce18d359f 100644
--- a/test/MyClassNatives/MyClassNatives.java
+++ b/test/MyClassNatives/MyClassNatives.java
@@ -3,6 +3,7 @@
class MyClass {
native void throwException();
native void foo();
+ native int bar(int count);
native int fooI(int x);
native int fooII(int x, int y);
native long fooJJ(long x, long y);