Skip to content

Commit

Permalink
Reinitialize sun.nio.ch.NioSocketImpl
Browse files Browse the repository at this point in the history
Workaround till oracle/graal#10431 gets merged
and backported to all supported versions
  • Loading branch information
zakkak authored and gsmet committed Jan 9, 2025
1 parent d12b813 commit a23633a
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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");
}

}

0 comments on commit a23633a

Please sign in to comment.