We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef7447 commit b073780Copy full SHA for b073780
modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4Utils.java
@@ -66,6 +66,10 @@ public InternalLogger newInstance(final String name) {
66
public static void setup() {
67
// TODO remove this once we get a fix into Netty so we don't have to do this
68
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
69
+ // this is triggering class initialization which triggers the reflective retrieval of
70
+ // the Throwable#addSuppressed method. We need to do this to avoid
71
+ // AccessControlExceptions that this code would otherwise trigger without us wrapping
72
+ // it in a doPrivileged block
73
ThrowableUtil.haveSuppressed();
74
return null;
75
});
0 commit comments