Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6974ce

Browse files
committed
dalvik compatibility patch
1 parent 41d0470 commit d6974ce

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,19 +1795,7 @@ public boolean shouldPrecompileAll() {
17951795
////////////////////////////////////////////////////////////////////////////
17961796

17971797
private static int initGlobalJavaVersion() {
1798-
String specVersion = Options.BYTECODE_VERSION.load();
1799-
1800-
// stack map calculation is failing for some compilation scenarios, so
1801-
// forcing both 1.5 and 1.6 to use 1.5 bytecode for the moment.
1802-
if (specVersion.equals("1.5")) {// || specVersion.equals("1.6")) {
1803-
return Opcodes.V1_5;
1804-
} else if (specVersion.equals("1.6")) {
1805-
return Opcodes.V1_6;
1806-
} else if (specVersion.equals("1.7") || specVersion.equals("1.8")) {
1807-
return Opcodes.V1_7;
1808-
} else {
1809-
throw new RuntimeException("unsupported Java version: " + specVersion);
1810-
}
1798+
return Opcodes.V1_6;
18111799
}
18121800

18131801
@Deprecated

0 commit comments

Comments
 (0)