Closed Bug 1608577 Opened 4 years ago Closed 4 years ago

Get rid of "using namespace mozilla::java" in Gecko

Categories

(Core :: General, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

Details

(Whiteboard: [geckoview:m74])

Attachments

(3 files)

https://searchfox.org/mozilla-central/search?q=using+namespace.*java%3B&case=false&regexp=true&path=

This is bad, as it makes it so that GV can't declare types in Java-land with identical names to their C++ analogs because, even though we generate the JNI stuff in a separate namespace, people are importing all that stuff into their source.

This is particularly bad because we currently dump all generated JNI wrappers into a single giant header file.

Also, there's even a using namespace inside a header file, which is double-bad.

Assignee: nobody → aklotz
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [geckoview]
Pushed by aklotz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00ea3cdf6e19
Part 1 - Remove |using namespace mozilla::java| from dom/media; r=kinetik
https://hg.mozilla.org/integration/autoland/rev/158cbeb17bba
Part 2 - Remove |using namespace mozilla::java| from webrtc; r=bwc
https://hg.mozilla.org/integration/autoland/rev/9f5fb892f32c
Part 3 - Remove |using namespace mozilla::java| from widget/android; r=geckoview-reviewers,esawin
Whiteboard: [geckoview] → [geckoview:m74]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: