Skip to content

Commit

Permalink
IBM Fix for 12.4 (#2213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery-Wasty committed Sep 13, 2023
1 parent c457a4a commit e03421a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/java/com/microsoft/sqlserver/jdbc/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,8 @@ private Util() {
private static final Lock LOCK = new ReentrantLock();

static boolean isIBM() {
Class<?> clazz = null;
try {
clazz = Class.forName("com.ibm.lang.management.MemoryUsage");
} catch (ClassNotFoundException e) {
//We're using the try-catch to test for IBM jdk, no need to handle exception.
}
return null != clazz;
String vmName = System.getProperty("java.vm.name");
return SYSTEM_JRE.startsWith("IBM") && vmName.startsWith("IBM");
}

static String getJVMArchOnWindows() {
Expand Down

0 comments on commit e03421a

Please sign in to comment.