Closed Bug 1287946 Opened 9 years ago Closed 9 years ago

Move Java bindings to mozilla::java namespace

Categories

(Core Graveyard :: Widget: Android, defect)

All
Android
defect
Not set
normal

Tracking

(firefox50 fixed)

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: jchen, Assigned: jchen)

Details

Attachments

(3 files)

Moving the auto-generated bindings to mozilla::java avoids conflicts, and makes it more clear that we're using Java bindings in code.
Currently, auto-generated Java bindings are in the mozilla::widget namespace, and that potentially conflicts with code under widget/android. Moving the bindings to mozilla::java avoids conflicts and makes it more clear that we're using Java bindings.
Attachment #8772599 - Flags: review?(snorp)
PrefsHelper uses Maybe<> as a replacement for a ternary expression, in order to work around jni::StringParam's lack of copy constructor. However, we can add a move constructor to StringParam, which lets us use it in a ternary expression, and avoid the awkwardness of Maybe<>.
Attachment #8772601 - Flags: review+
Attachment #8772599 - Flags: review?(snorp) → review+
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0cf61343793a Move Java bindings to mozilla::java namespace; r=snorp https://hg.mozilla.org/integration/mozilla-inbound/rev/684888aeee81 Update existing code to use mozilla::java; r=me https://hg.mozilla.org/integration/mozilla-inbound/rev/e954e5a93482 Improve usage of StringParam in PrefsHelper; r=me
Flags: needinfo?(nchen)
Repushed with clobber.
Flags: needinfo?(nchen)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: