Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation scanning should ignore module-info.class files #1692

Closed
joakime opened this issue Jul 25, 2017 · 2 comments · Fixed by scalatra/scalatra.g8#87
Closed

Annotation scanning should ignore module-info.class files #1692

joakime opened this issue Jul 25, 2017 · 2 comments · Fixed by scalatra/scalatra.g8#87
Assignees
Labels
Bug For general bugs on Jetty side

Comments

@joakime
Copy link
Contributor

joakime commented Jul 25, 2017

If a class has a JDK9 / JPMS specific feature known as module-info.class, then this class should never be scanned for annotations by Jetty's bytecode scanner.

To reproduce this bug, include the following classes in the WEB-INF/lib of a war file.

slf4j-api-1.8.0-alpha2.jar
log4j-over-slf4j-1.8.0-alpha2.jar
jcl-over-slf4j-1.8.0-alpha2.jar

@joakime joakime added Bug For general bugs on Jetty side jdk9 labels Jul 25, 2017
@joakime
Copy link
Contributor Author

joakime commented Jul 25, 2017

janbartel added a commit that referenced this issue Jul 26, 2017
@janbartel
Copy link
Contributor

Done for jetty-9.4.x.

joakime pushed a commit that referenced this issue Jul 29, 2017
joakime pushed a commit that referenced this issue Aug 8, 2017
gregw pushed a commit that referenced this issue Oct 17, 2017
colindean added a commit to colindean/sbt-scalatra that referenced this issue Mar 7, 2018
colindean added a commit to colindean/scalatra.g8 that referenced this issue Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants