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 GitHub
parent 81544ab94f
commit d62384b227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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": []
}
]
}
]