Skip to content

Commit a23633a

Browse files
zakkakgsmet
authored andcommitted
Reinitialize sun.nio.ch.NioSocketImpl
Workaround till oracle/graal#10431 gets merged and backported to all supported versions
1 parent d12b813 commit a23633a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package io.quarkus.deployment;
2+
3+
import io.quarkus.deployment.annotations.BuildStep;
4+
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
5+
6+
public class NioSocketImplProcessor {
7+
8+
// Workaround till https://github.com/oracle/graal/pull/10431 gets merged and backported to all supported versions
9+
@BuildStep
10+
RuntimeInitializedClassBuildItem reinitializeClass() {
11+
return new RuntimeInitializedClassBuildItem("sun.nio.ch.NioSocketImpl");
12+
}
13+
14+
}

0 commit comments

Comments
 (0)