We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6340a6d commit 4a72119Copy full SHA for 4a72119
src/main/java/me/coley/recaf/compiler/JavacTargetVersion.java
@@ -96,11 +96,13 @@ public static JavacTargetVersion getMinJavacSupport() {
96
try {
97
Class<?> cls = Class.forName("com.sun.tools.javac.jvm.Target");
98
Field min = cls.getDeclaredField("MIN");
99
+ min.setAccessible(true);
100
Object minTargetInstance = min.get(null);
101
Field version = cls.getDeclaredField("majorVersion");
102
+ version.setAccessible(true);
103
return fromClassMajor(version.getInt(minTargetInstance));
104
} catch (Exception ex) {
- Log.error("Failed to find javac minimum supported version, defaulting to Java 7");
105
+ Log.error(ex, "Failed to find javac minimum supported version, defaulting to Java 7");
106
}
107
return V7;
108
0 commit comments