Skip to content

Commit

Permalink
Make quarkus-jdbc-mysql work properly in native mode for Java 17
Browse files Browse the repository at this point in the history
Fixes: #21366
  • Loading branch information
geoand committed Nov 23, 2021
1 parent ba74b80 commit ad40d1b
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
}

0 comments on commit ad40d1b

Please sign in to comment.