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-47186] Unified native-image classloader for module- and class-path. #7302

Merged
merged 11 commits into from
Aug 30, 2023

Conversation

graalvmbot
Copy link
Collaborator

This custom class loader is used by the image builder to load the application classes that should be built into a native-image. It can load classes from a user-provided application module- and class-path. This is different from the existing classloaders that the JDK provides. While ModuleLayer.defineModulesWith methods only allow loading modules at runtime, URLClassLoader only allows loading classes on classpath at runtime. This is insufficient for the image builder as it needs to be able to load from both, module- and class-path, with the same loader so that classes on the given class-path are able to access classes from the given module-path.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 29, 2023
@olpaw olpaw self-assigned this Aug 29, 2023
@graalvmbot graalvmbot merged commit 7659203 into master Aug 30, 2023
@graalvmbot graalvmbot deleted the paw/GR-47186-unified-loader branch August 30, 2023 04:34
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
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants