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

[GR-49347] Check if modules contain packages before attempting to open/export #9157

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

graalvmbot
Copy link
Collaborator

When processing class loader options, NativeImageClassLoaderSupport processes opens/exports provided via command line. It calls JDK methods that throw IllegalArgumentException if a package is attempted to be exported/opened that is not contained in the source module. On JVM this is just a warning, while on NI it is a build-time error.

This PR adds a check to ensure compatibility by providing the same warning message.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 20, 2024
@graalvmbot graalvmbot closed this Jun 24, 2024
@graalvmbot graalvmbot deleted the ivan-ristovic/GR-49347-open-non-existing-module branch June 24, 2024 15:17
@graalvmbot graalvmbot merged commit e924e68 into master Jun 24, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants