Commit 73656c32 authored by torne's avatar torne Committed by Commit bot

Use JavaRef in JNI generator sample.

Switch the JNI generator sample code to use a JavaRef for java method
parameters instead of jobject.

BUG=506850

Review-Url: https://codereview.chromium.org/2418893003
Cr-Commit-Position: refs/heads/master@{#427075}
parent deebbc09
......@@ -117,7 +117,7 @@ int main() {
// This is how you call a java method from C++. Note that you must have
// obtained the jobject somehow.
jobject my_java_object = NULL;
ScopedJavaLocalRef<jobject> my_java_object;
int bar = base::android::Java_SampleForTests_javaMethod(
env, my_java_object, 1, 2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment