Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Issue 2154293002: jni_generator: handle inner class natives properly. (Closed)

Created:
4 years, 5 months ago by Torne
Modified:
4 years, 5 months ago
Reviewers:
rmcilroy
CC:
chromium-reviews, no sievers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

jni_generator: handle inner class natives properly. Inner classes with native methods but no @CalledByNative methods were generating incorrect code that doesn't compile, but there was no example of this in the sample class and so it wasn't noticed. Several of the non-compiled test headers were doing this and the header was just un-compilable as a result. Fix this by including the class global's declaration and initialisation in all the appropriate cases, and adding an example to the sample. BUG=629103 R=rmcilroy@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/2eb44e80e1216124ced411b369a254d103d00cc3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -4 lines) Patch
M base/android/jni_generator/golden_sample_for_tests_jni.h View 5 chunks +35 lines, -0 lines 0 comments Download
M base/android/jni_generator/java/src/org/chromium/example/jni_generator/SampleForTests.java View 2 chunks +7 lines, -0 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 4 chunks +5 lines, -4 lines 0 comments Download
M base/android/jni_generator/sample_for_tests.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M base/android/jni_generator/testInnerClassNatives.golden View 2 chunks +5 lines, -0 lines 0 comments Download
M base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden View 2 chunks +5 lines, -0 lines 0 comments Download
M base/android/jni_generator/testInnerClassNativesMultiple.golden View 2 chunks +10 lines, -0 lines 0 comments Download
M base/android/jni_generator/testNativeExportsOptionalOption.golden View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Torne
Found this bug while trying to remove the native_exports option and make it always true, ...
4 years, 5 months ago (2016-07-18 15:54:52 UTC) #2
rmcilroy
LGTM
4 years, 5 months ago (2016-07-19 09:09:20 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154293002/1
4 years, 5 months ago (2016-07-19 09:43:39 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/220450)
4 years, 5 months ago (2016-07-19 10:03:13 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/2eb44e80e1216124ced411b369a254d103d00cc3 Cr-Commit-Position: refs/heads/master@{#406249}
4 years, 5 months ago (2016-07-19 11:39:23 UTC) #9
Torne
4 years, 5 months ago (2016-07-19 11:40:04 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
2eb44e80e1216124ced411b369a254d103d00cc3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698