Skip to content

Commit

Permalink
Runtime reinitialize org.postgresql.util.PasswordUtil$SecureRandomHolder
Browse files Browse the repository at this point in the history
Fixes quarkusio#38949

(cherry picked from commit 36cf06b)
  • Loading branch information
gsmet committed Feb 26, 2024
1 parent cc7607f commit 3845b3f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.NativeImageFeatureBuildItem;
import io.quarkus.deployment.builditem.SslNativeConfigBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeReinitializedClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild;
import io.quarkus.jdbc.postgresql.runtime.PostgreSQLAgroalConnectionConfigurer;
Expand All @@ -32,6 +33,11 @@ NativeImageFeatureBuildItem nativeImageFeature() {
return new NativeImageFeatureBuildItem(SQLXMLFeature.class);
}

@BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)
RuntimeReinitializedClassBuildItem runtimeReinitialize() {
return new RuntimeReinitializedClassBuildItem("org.postgresql.util.PasswordUtil$SecureRandomHolder");
}

@BuildStep
void registerDriver(BuildProducer<JdbcDriverBuildItem> jdbcDriver,
SslNativeConfigBuildItem sslNativeConfigBuildItem) {
Expand Down

0 comments on commit 3845b3f

Please sign in to comment.