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:
Dave Syer 2020-10-30 14:26:41 +00:00 committed by Norman Maurer
parent 78d5ab4027
commit 1a90fd33e0

View File

@ -11,5 +11,23 @@
{ "name": "selectedKeys", "allowUnsafeAccess" : true},
{ "name": "publicSelectedKeys", "allowUnsafeAccess" : true}
]
},
{
"name": "java.lang.management.ManagementFactory",
"methods": [
{
"name": "getRuntimeMXBean",
"parameterTypes": []
}
]
},
{
"name": "java.lang.management.RuntimeMXBean",
"methods": [
{
"name": "getName",
"parameterTypes": []
}
]
}
]