-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fixes related to using public APIs introduced in GraalVM 22.3 #28316
Conversation
zakkak
commented
Sep 30, 2022
- Fixes a class cast exception by actually loading the class and not just its name.
- Reduces the invocations to Version.getCurrent() in the generated native-image Feature
- Specifies (as required) the module name when registering jaxp resource bundles
@jerboaa can you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me.
tryBlock.invokeStaticMethod(registerLambdaCapturingClass, | ||
tryBlock.load(i.getClassName())); | ||
tryBlock.loadClassFromTCCL(i.getClassName())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, this is fixing: https://github.com/graalvm/mandrel/actions/runs/3156296401/jobs/5136091100#step:11:316
OK.
void resourceBundles(BuildProducer<NativeImageResourceBundleBuildItem> resourceBundle) { | ||
Consumer<String> resourceBundleItemProducer = bundleName -> resourceBundle | ||
.produce(new NativeImageResourceBundleBuildItem(bundleName, "java.xml")); | ||
Stream.of( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are fixing: https://github.com/graalvm/mandrel/actions/runs/3156296401/jobs/5136091100#step:11:343, but we also need oracle/graal#5118 correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct