mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 14:54:56 +00:00
parse java.specification.version not java.version, so that it is robust
This commit is contained in:
parent
d20c8861ca
commit
51da1fe2a1
@ -33,7 +33,7 @@ public class LocaleChecker {
|
||||
public static int JVM_PATCH_MINOR_VERSION = 0;
|
||||
|
||||
static {
|
||||
StringTokenizer st = new StringTokenizer(Constants.JAVA_VERSION, ".");
|
||||
StringTokenizer st = new StringTokenizer(Constants.JVM_SPEC_VERSION, ".");
|
||||
JVM_MAJOR_VERSION = parseInt(st.nextToken());
|
||||
if(st.hasMoreTokens()) {
|
||||
JVM_MINOR_VERSION = parseInt(st.nextToken());
|
||||
|
Loading…
x
Reference in New Issue
Block a user