Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public class JVM {

/** The Constant JDK1_9. */
public final static int JDK1_9 = 32;
/** JDK1_9以上版本 */
public final static int JDK1_9_OLDER = 99;

/** The current. */
private static JVM current;
Expand Down Expand Up @@ -137,8 +139,8 @@ else if (p_JavaVersion.startsWith("1.6."))
} else if (p_JavaVersion.startsWith("1.0.")) {
jdkVersion = JDK1_0;
} else {
// unknown version, assume 1.3
jdkVersion = JDK1_3;
// unknown version, assume over 1.9
jdkVersion = JDK1_9_OLDER;
}
}

Expand Down Expand Up @@ -266,4 +268,4 @@ public boolean isOneDotEight() {
public boolean isOneDotNine() {
return jdkVersion == JDK1_9;
}
}
}