Skip to content

Commit cfce27a

Browse files
committedJun 6, 2018
-Xbytecode.version is used to specify version of generated byte-code
... thus it makes no sense to fail here -> keep it working as before
1 parent 7d1d9da commit cfce27a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎core/src/main/java/org/jruby/RubyInstanceConfig.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1886,8 +1886,9 @@ private static int initGlobalJavaVersion() {
18861886
final String specVersion = Options.BYTECODE_VERSION.load();
18871887
switch ( specVersion ) {
18881888
case "1.6" :
1889+
return Opcodes.V1_6;
18891890
case "1.7" :
1890-
throw new UnsupportedClassVersionError("JRuby requires Java 8 or higher");
1891+
return Opcodes.V1_7;
18911892
case "1.8" : case "8" : default :
18921893
return Opcodes.V1_8; // 52
18931894
case "9" :

0 commit comments

Comments
 (0)
Please sign in to comment.