Skip to content

Commit

Permalink
Add reflection hints for io.netty.util.internal.PlatformDependent0 wh…
Browse files Browse the repository at this point in the history
…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 [email protected]/java.lang.Class.checkMethod(DynamicHub.java:1065) ~[spring.graalvm:na]
        at [email protected]/java.lang.Class.getConstructor0(DynamicHub.java:1228) ~[spring.graalvm:na]
        at [email protected]/java.lang.Class.getDeclaredConstructor(DynamicHub.java:2930) ~[spring.graalvm:na]
        at io.netty.util.internal.PlatformDependent0$5.run(PlatformDependent0.java:291) ~[na:na]
        at [email protected]/java.security.AccessController.executePrivileged(AccessController.java:129) ~[na:na]
        at [email protected]/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]
  • Loading branch information
violetagg committed Jan 16, 2024
1 parent 8d60c36 commit eb36c19
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions metadata/io.netty/netty-common/4.1.80.Final/reflect-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3760,6 +3760,21 @@
}
]
},
{
"condition": {
"typeReachable": "io.netty.util.internal.PlatformDependent0"
},
"name": "java.nio.DirectByteBuffer",
"methods": [
{
"name": "<init>",
"parameterTypes": [
"long",
"long"
]
}
]
},
{
"condition": {
"typeReachable": "io.netty.util.internal.PlatformDependent0$5"
Expand All @@ -3775,6 +3790,21 @@
}
]
},
{
"condition": {
"typeReachable": "io.netty.util.internal.PlatformDependent0$5"
},
"name": "java.nio.DirectByteBuffer",
"queriedMethods": [
{
"name": "<init>",
"parameterTypes": [
"long",
"long"
]
}
]
},
{
"condition": {
"typeReachable": "io.netty.channel.unix.Unix"
Expand Down Expand Up @@ -4259,6 +4289,21 @@
}
]
},
{
"condition": {
"typeReachable": "io.netty.util.internal.PlatformDependent0$8"
},
"name": "jdk.internal.misc.Unsafe",
"methods": [
{
"name": "allocateUninitializedArray",
"parameterTypes": [
"java.lang.Class",
"int"
]
}
]
},
{
"condition": {
"typeReachable": "io.netty.util.internal.logging.CommonsLoggerFactory"
Expand Down

0 comments on commit eb36c19

Please sign in to comment.