Closed Bug 1745246 Opened 2 years ago Closed 2 years ago

With Java 11 @interface IntDef, LongDef etc need to be public

Categories

(GeckoView :: General, defect, P1)

Unspecified
All

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: agi, Assigned: agi)

References

Details

(Whiteboard: [geckoview:m97][geckoview:m98])

Attachments

(4 files)

Due to a change in the Java 11 bytecode, all the enum def @interface need to be public, otherwise downstream builds will fail with something like:

[task 2021-12-09T15:30:12.030Z] ERROR:/builds/worker/.gradle/caches/transforms-3/48cc8c0d0946de8e4fe0bd5e927fac1a/transformed/geckoview-nightly-omni-97.0.20211209093228-runtime.jar: D8: Compilation of classes org.mozilla.geckoview.Autofill, org.mozilla.geckoview.Autofill$Support, org.mozilla.geckoview.Autofill$Delegate, org.mozilla.geckoview.Autofill$Node, org.mozilla.geckoview.Autofill$Node$Builder, org.mozilla.geckoview.Autofill$Session, org.mozilla.geckoview.Autofill$InputType, org.mozilla.geckoview.Autofill$Hint, org.mozilla.geckoview.Autofill$Notify requires its nest mates org.mozilla.geckoview.Autofill$AutofillInputType, org.mozilla.geckoview.Autofill$AutofillHint, org.mozilla.geckoview.Autofill$AutofillNotify (unavailable) to be on program or class path.

see also https://openjdk.java.net/jeps/181

This patch introduces a new field maven-artifacts which allows specifying a
list of maven artifacts that will be generated by a build and published to our
maven repository.

This allows us to split up GeckoView into separate maven packages.

Assignee: nobody → agi
Status: NEW → ASSIGNED

Temporary commit to help code review.

This patch just moves the files without any further change. Actual build
changes will happen in a later patch.

This allows us to decouple GeckoView from exoplayer2, have it's own Java
settings and not pollute GeckoView's dependencies.

Blocks: 1724480
Priority: -- → P1
Whiteboard: [geckoview:m97]
Flags: needinfo?(ahal)
Flags: needinfo?(agi)
Whiteboard: [geckoview:m97] → [geckoview:m97][geckoview:m98]

I think this was supposed to be for unlanded patch with r+? Fine to land by me, will leave up to :agi.

Flags: needinfo?(ahal)
Pushed by asferro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/789ee91f1dfe
Allow specifying multiple maven artifacts from build. r=calu,ahal
https://hg.mozilla.org/integration/autoland/rev/e470f0d75f45
Move org/mozilla/thirdparty to mobile/android/exoplayer2. r=calu
https://hg.mozilla.org/integration/autoland/rev/604947f6662b
Move org/mozilla/thirdparty to it's own module. r=calu
https://hg.mozilla.org/integration/autoland/rev/8f0bb6fd1f53
Make @interface classes public. r=jonalmeida
Regressions: 1751923
Flags: needinfo?(agi)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: