Closed
Bug 1186517
Opened 9 years ago
Closed 9 years ago
Generate SDK JNI headers for Bundle
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox42 fixed)
RESOLVED
FIXED
Firefox 42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: jchen, Assigned: jchen)
References
Details
Attachments
(3 files)
3.30 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
6.41 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
2.14 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
We need JNI access to Bundle for NativeJSContainer.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8639508 -
Flags: review+
Assignee | ||
Comment 2•9 years ago
|
||
The API version detection functionality was broken in SDKProcessor because we were passing in "Lpackage/Class;" as the class name rather than just "package/Class". Also, some classes have a weird situation where some methods were moved around in later API versions. For example, some put* and get* methods in Bundle were moved to BaseBundle in API 21. If we only checked BaseBundle.put*, we would think they are API 21+ only. The workaround is to check both the top-level class and the declaring class for a member, and choose the lower API level as the minimal API level for that member. This patch also fixes bugs in including the right class members. For SDKProcessor we want to include all public members of a class, including inherited members, because the private/protected members are not part of the public API. For AnnotationProcessor, we want to include all the members declared in that class, including private and protected members, because we may want to access private/protected members of our own Java classes from C++.
Attachment #8639509 -
Flags: review?(snorp)
Assignee | ||
Comment 3•9 years ago
|
||
Add Bundle to the list of SDK classes to generate JNI bindings for. The generated bindings, like other SDK classes, use XPCOM-style nsresult to indicate success/failure, and return values through out-parameters.
Attachment #8639510 -
Flags: review?(snorp)
Attachment #8639509 -
Flags: review?(snorp) → review+
Attachment #8639510 -
Flags: review?(snorp) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0229401cfa69 https://hg.mozilla.org/integration/mozilla-inbound/rev/86ca0d45483d https://hg.mozilla.org/integration/mozilla-inbound/rev/1717cd1f2d95
https://hg.mozilla.org/mozilla-central/rev/0229401cfa69 https://hg.mozilla.org/mozilla-central/rev/86ca0d45483d https://hg.mozilla.org/mozilla-central/rev/1717cd1f2d95
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•