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 9addd60 commit b3ba7e3
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
@@ -1889,12 +1889,7 @@ private static int initGlobalJavaVersion() {
case "1.7" : throw new UnsupportedClassVersionError("JRuby requires Java 8 or higher");
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 8 or higher");
}
return Opcodes.V9;
}
}

0 comments on commit b3ba7e3

Please sign in to comment.