diff --git a/core/deployment/src/main/java/io/quarkus/deployment/NioSocketImplProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/NioSocketImplProcessor.java new file mode 100644 index 00000000000000..9f8d7098bcf7bb --- /dev/null +++ b/core/deployment/src/main/java/io/quarkus/deployment/NioSocketImplProcessor.java @@ -0,0 +1,14 @@ +package io.quarkus.deployment; + +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; + +public class NioSocketImplProcessor { + + // Workaround till https://github.com/oracle/graal/pull/10431 gets merged and backported to all supported versions + @BuildStep + RuntimeInitializedClassBuildItem reinitializeClass() { + return new RuntimeInitializedClassBuildItem("sun.nio.ch.NioSocketImpl"); + } + +}