Skip to content

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
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.

2 participants