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

Fix Avro substitutions for Java 17 #21464

Merged

Conversation

cescoffier
Copy link
Member

The upstream code uses MethodHandle, which with Java 17, touches the ProtectionDomain class. That class is not accessible in GraalVM.
This commit changes the method using the MethodHandle to use regular reflection. It only applies to Java 17+.

This PR fixes quarkusio/quarkus-quickstarts#990

The upstream code uses MethodHandle, which with Java 17, touches the ProtectionDomain class. That class is not accessible in GraalVM.
This commit changes the method using the MethodHandle to use regular reflection. It only applies to Java 17+.

This commit fixes quarkusio/quarkus-quickstarts#990
@gsmet gsmet merged commit e79d2e9 into quarkusio:main Nov 15, 2021
@quarkus-bot quarkus-bot bot added this to the 2.6 - main milestone Nov 15, 2021
@gsmet gsmet modified the milestones: 2.6 - main, 2.5.0.Final Nov 15, 2021
@cescoffier cescoffier deleted the fix-avro-native-bluid-issue-with-java-17 branch November 16, 2021 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GraalVM 21.3.0.r17] Avro quickstart failing during the native build
2 participants