Skip to content

Commit b3ba7e3

Browse files
committedMar 27, 2018
Default to Java 9 bytecode for any java.specification.version>1.8.
Fixes jruby/jruby-openssl#157
1 parent 9addd60 commit b3ba7e3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

Diff for: ‎core/src/main/java/org/jruby/RubyInstanceConfig.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -1889,12 +1889,7 @@ private static int initGlobalJavaVersion() {
18891889
case "1.7" : throw new UnsupportedClassVersionError("JRuby requires Java 8 or higher");
18901890
case "1.8" : case "8" : return Opcodes.V1_8; // 52
18911891
default :
1892-
int version = Integer.parseInt(specVersion);
1893-
if (version >= 9) {
1894-
return Opcodes.V9;
1895-
} else {
1896-
throw new UnsupportedClassVersionError("JRuby requires Java 8 or higher");
1897-
}
1892+
return Opcodes.V9;
18981893
}
18991894
}
19001895

0 commit comments

Comments
 (0)