We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ec015 commit 31e3a80Copy full SHA for 31e3a80
src/main/java/me/coley/recaf/compiler/JavacTargetVersion.java
@@ -1,5 +1,6 @@
1
package me.coley.recaf.compiler;
2
3
+import me.coley.recaf.util.ClassUtil;
4
import me.coley.recaf.util.Log;
5
import me.coley.recaf.util.VMUtil;
6
import org.objectweb.asm.Opcodes;
@@ -94,7 +95,7 @@ public static JavacTargetVersion getMinJavacSupport() {
94
95
*/
96
public static JavacTargetVersion getMaxJavacSupport() {
97
try {
- return fromClassMajor(VMUtil.getVmVersion());
98
+ return fromClassMajor(VMUtil.getVmVersion() + ClassUtil.VERSION_OFFSET);
99
} catch (Exception ex) {
100
Log.error("Failed to find javac maximum supported version, defaulting to Java 8 (52)");
101
}
0 commit comments