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

Fixes related to using public APIs introduced in GraalVM 22.3 #28316

Merged
merged 3 commits into from
Sep 30, 2022

Conversation

zakkak
Copy link
Contributor

@zakkak 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

@zakkak
Copy link
Contributor Author

zakkak commented Sep 30, 2022

@jerboaa can you please review?

Copy link
Contributor

@jerboaa jerboaa left a 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.

Comment on lines 187 to +188
tryBlock.invokeStaticMethod(registerLambdaCapturingClass,
tryBlock.load(i.getClassName()));
tryBlock.loadClassFromTCCL(i.getClassName()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines 33 to 36
void resourceBundles(BuildProducer<NativeImageResourceBundleBuildItem> resourceBundle) {
Consumer<String> resourceBundleItemProducer = bundleName -> resourceBundle
.produce(new NativeImageResourceBundleBuildItem(bundleName, "java.xml"));
Stream.of(
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct

@zakkak zakkak requested a review from geoand September 30, 2022 14:42
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 30, 2022

Failing Jobs - Building 4beeaf3

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
✔️ JVM Tests - JDK 17
JVM Tests - JDK 17 MacOS M1 Set up runner ⚠️ Check → Logs Raw logs
✔️ JVM Tests - JDK 18

@gsmet gsmet merged commit 38f4138 into quarkusio:main Sep 30, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 30, 2022
@zakkak zakkak deleted the 2022-09-29-fix-main branch October 3, 2022 06:46
@gsmet gsmet modified the milestones: 2.14 - main, 2.13.1.Final Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants