Java Error: Wrong Package Statement
Categories
(GeckoView :: General, defect, P5)
Tracking
(firefox105 wontfix, firefox106 wontfix, firefox107 fixed)
People
(Reporter: fluffyemily, Assigned: samihda, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=java])
Attachments
(1 file)
Detects package statements that do not correspond to the project directory structure and reports classes without package statements. Affected Class SurfaceTextureListener Package name 'org.mozilla.gecko' does not correspond to the file path 'org.mozilla.gecko.gfx'
Updated•6 years ago
|
Updated•5 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Does anybody have more details on which part of the codebase is affected and what we want to do here exactly?
Perhaps some shell script to check if the package names match the directory, something like that?
I'm just trying to see if I can help address this issue.
Comment 2•2 years ago
|
||
(In reply to [:samihda] from comment #1)
Does anybody have more details on which part of the codebase is affected and what we want to do here exactly?
https://searchfox.org/mozilla-central/rev/275630dfceb88eee07e4c7d38cd021dd39c2ab23/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/SurfaceTextureListener.java#6 should be org.mozilla.gecko.gfx;
Perhaps some shell script to check if the package names match the directory, something like that?
Unnecessary.
If you want to contribute the fix for this bug, please reference https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html to create a patch and https://firefox-source-docs.mozilla.org/mobile/android/geckoview/contributor/geckoview-quick-start.html to build GeckoView at first.
Assignee | ||
Comment 3•2 years ago
|
||
I see, thanks for the clarification. I will take a look.
Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
The build is fine on my end, and I've submitted the patch. I think I don't have access to the Try server though. I'm not sure what the next steps here should be.
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/d16467822488 Match package name with file path. r=m_kato,geckoview-reviewers
Comment 7•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Thanks for your contribution, samihda!
If you're looking for more good Android bugs, here are some you might consider:
Updated•2 years ago
|
Description
•