diff --git a/extensions/jdbc/jdbc-mysql/runtime/src/main/java/io/quarkus/jdbc/mysql/runtime/graal/com/mysql/cj/jdbc/MySQLJDBCSubstitutions.java b/extensions/jdbc/jdbc-mysql/runtime/src/main/java/io/quarkus/jdbc/mysql/runtime/graal/com/mysql/cj/jdbc/MySQLJDBCSubstitutions.java new file mode 100644 index 00000000000000..1a8d2bf9b78347 --- /dev/null +++ b/extensions/jdbc/jdbc-mysql/runtime/src/main/java/io/quarkus/jdbc/mysql/runtime/graal/com/mysql/cj/jdbc/MySQLJDBCSubstitutions.java @@ -0,0 +1,29 @@ +package io.quarkus.jdbc.mysql.runtime.graal.com.mysql.cj.jdbc; + +import java.sql.SQLException; + +import com.oracle.svm.core.annotate.Substitute; +import com.oracle.svm.core.annotate.TargetClass; + +@TargetClass(className = "com.mysql.cj.jdbc.ConnectionGroupManager") +final class ConnectionGroupManager { + + @Substitute + public static void registerJmx() throws SQLException { + + } + +} + +@TargetClass(className = "com.mysql.cj.jdbc.jmx.ReplicationGroupManager") +final class ReplicationGroupManager { + + @Substitute + public synchronized void registerJmx() throws SQLException { + + } + +} + +class MySQLJDBCSubstitutions { +}