Add reflection config for JMX runtime (#10753)
Motivation: `DefaultChannelId` uses reflection to access the JMX runtime. This needs some extra config for GraalVM. Modification: Add config for GraalVM Result: Works when using GraalVM native image
This commit is contained in:
parent
78d5ab4027
commit
1a90fd33e0
@ -11,5 +11,23 @@
|
|||||||
{ "name": "selectedKeys", "allowUnsafeAccess" : true},
|
{ "name": "selectedKeys", "allowUnsafeAccess" : true},
|
||||||
{ "name": "publicSelectedKeys", "allowUnsafeAccess" : true}
|
{ "name": "publicSelectedKeys", "allowUnsafeAccess" : true}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "java.lang.management.ManagementFactory",
|
||||||
|
"methods": [
|
||||||
|
{
|
||||||
|
"name": "getRuntimeMXBean",
|
||||||
|
"parameterTypes": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "java.lang.management.RuntimeMXBean",
|
||||||
|
"methods": [
|
||||||
|
{
|
||||||
|
"name": "getName",
|
||||||
|
"parameterTypes": []
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user