Skip to content

Commit

Permalink
Runtime reinitialize org.postgresql.util.PasswordUtil$SecureRandomHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Feb 22, 2024
1 parent 2ae5b45 commit 36cf06b
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 36cf06b

Please sign in to comment.