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

Don't index invisible muti-release classes #16667

Merged
merged 1 commit into from Apr 21, 2021

Conversation

stuartwdouglas
Copy link
Member

Don't index classes that are not able to be
loaded as the current Java version is too low.

Note that if a newer JDK is used to run the
resulting application these classes will become
visible, however this is less likely to cause
problems than the current situation.

This is because adding invisible classes to the
index can result in bytecode being generated which
references these classes, which will cause startup
to fail. The alternative of not adding them to the
index only means that some annotation based funcationaly
(such as CDI) won't work for those classes, but
this seems a corner case (and the solution is to
build with the same version you are running).

Don't index classes that are not able to be
loaded as the current Java version is too low.

Note that if a newer JDK is used to run the
resulting application these classes will become
visible, however this is less likely to cause
problems than the current situation.

This is because adding invisible classes to the
index can result in bytecode being generated which
references these classes, which will cause startup
to fail. The alternative of not adding them to the
index only means that some annotation based funcationaly
(such as CDI) won't work for those classes, but
this seems a corner case (and the solution is to
build with the same version you are running).
@quarkus-bot quarkus-bot bot added area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins labels Apr 21, 2021
@geoand
Copy link
Contributor

geoand commented Apr 21, 2021

Does this fix a known issue?

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stuartwdouglas
Copy link
Member Author

In some circumstances it can trigger a warning in the jacoco extension.

@geoand
Copy link
Contributor

geoand commented Apr 21, 2021

Gotcha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants