Add reflection hints for io.netty.util.internal.PlatformDependent0 when JDK 21#434
Merged
Merged
Conversation
…en JDK 21 Netty project has added a reflection specific for JDK 21 with netty/netty#13366 The reflection hints need to be updated to cover also this JDK version. java.lang.NoSuchMethodException: java.nio.DirectByteBuffer.<init>(long, long) at java.base@21.0.1/java.lang.Class.checkMethod(DynamicHub.java:1065) ~[spring.graalvm:na] at java.base@21.0.1/java.lang.Class.getConstructor0(DynamicHub.java:1228) ~[spring.graalvm:na] at java.base@21.0.1/java.lang.Class.getDeclaredConstructor(DynamicHub.java:2930) ~[spring.graalvm:na] at io.netty.util.internal.PlatformDependent0$5.run(PlatformDependent0.java:291) ~[na:na] at java.base@21.0.1/java.security.AccessController.executePrivileged(AccessController.java:129) ~[na:na] at java.base@21.0.1/java.security.AccessController.doPrivileged(AccessController.java:319) ~[na:na] at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:286) ~[na:na] at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:331) ~[na:na] at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:86) ~[na:na]
Contributor
Author
dnestoro
approved these changes
Jan 18, 2024
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Netty project has added a reflection specific for
JDK 21with netty/netty#13366The reflection hints need to be updated to cover also this JDK version.
The exception below is observed in the logs when running without these hints:
Code sections where the PR accesses files, network, docker or some external service
Checklist before merging
Test is not provided because the current
Gradleversion that the project uses does not supportJDK21.