Skip to content

Commit

Permalink
[oracle-jdbc] Complement the Oracle JDBC driver 23.4 graalvm's metada…
Browse files Browse the repository at this point in the history
…ta with additional runtime-initialize definitions
  • Loading branch information
Sanne committed Jul 18, 2024
1 parent 1afa671 commit 7ec1fd6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ void runtimeInitializeDriver(BuildProducer<RuntimeInitializedClassBuildItem> run
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.jdbc.xa.client.OracleXAHeteroConnection"));
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.jdbc.driver.T4CXAConnection"));
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.security.o5logon.O5Logon"));

//These were missing in the original driver, and apparently in its automatic feature definitions as well;
//the need was spotted by running the native build: GraalVM will complain about these types having initialized fields
//referring to various other types which aren't allowed in a captured heap.
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.jdbc.diagnostics.Diagnostic"));
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.jdbc.replay.driver.FailoverManagerImpl"));
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.jdbc.diagnostics.CommonDiagnosable"));
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.jdbc.replay.driver.TxnFailoverManagerImpl"));
runtimeInitialized.produce(new RuntimeInitializedClassBuildItem("oracle.jdbc.diagnostics.OracleDiagnosticsMXBean"));
}

@BuildStep
Expand Down

0 comments on commit 7ec1fd6

Please sign in to comment.