-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make quarkus-jdbc-mysql work properly in native mode for Java 17
Fixes: #21366
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...in/java/io/quarkus/jdbc/mysql/runtime/graal/com/mysql/cj/jdbc/MySQLJDBCSubstitutions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |