Skip to content

Commit

Permalink
Default to Java 9 bytecode for any java.specification.version>1.8.
Browse files Browse the repository at this point in the history
headius committed Mar 27, 2018

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
1 parent 6bf2323 commit 2a265b1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/src/main/java/org/jruby/RubyInstanceConfig.java
Original file line number Diff line number Diff line change
@@ -1898,12 +1898,7 @@ private static int initGlobalJavaVersion() {
case "1.7" : return Opcodes.V1_7; // 51
case "1.8" : case "8" : return Opcodes.V1_8; // 52
default :
int version = Integer.parseInt(specVersion);
if (version >= 9) {
return Opcodes.V9;
} else {
throw new UnsupportedClassVersionError("JRuby requires Java 7 or higher");
}
return Opcodes.V9;
}
}

0 comments on commit 2a265b1

Please sign in to comment.