File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
core/src/main/java/org/jruby Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments