Skip to content

fix: allow package-info and module-info as valid identifiers#6708

Open
caglareker wants to merge 1 commit intoINRIA:masterfrom
caglareker:fix/issue-6707-bug-package-info-java-with-xmlschema-still-th
Open

fix: allow package-info and module-info as valid identifiers#6708
caglareker wants to merge 1 commit intoINRIA:masterfrom
caglareker:fix/issue-6707-bug-package-info-java-with-xmlschema-still-th

Conversation

@caglareker
Copy link
Copy Markdown

Fixes #6707

package-info.java with fully qualified annotations (like @javax.xml.bind.annotation.XmlSchema) was throwing a JLSViolation because package-info isn't a valid Java identifier. Same issue would happen with module-info. Added both to the special type check so the validation skips them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: package-info.java with XmlSchema still throws JLSViolation "Identifier: package-info" in 11.3.1-beta-8

1 participant