We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a31af23 commit aaa99ebCopy full SHA for aaa99eb
querydsl-tooling/querydsl-codegen-utils/src/main/java/com/querydsl/codegen/utils/ECJEvaluatorFactory.java
@@ -61,6 +61,10 @@ public class ECJEvaluatorFactory extends AbstractEvaluatorFactory {
61
62
public static CompilerOptions getDefaultCompilerOptions() {
63
var javaSpecVersion = System.getProperty("java.specification.version");
64
+ // use Java 8 compliance to disable module support and avoid NPE in newer ECJ versions
65
+ if (!javaSpecVersion.startsWith("1.")) {
66
+ javaSpecVersion = "1.8";
67
+ }
68
Map<String, String> settings = new HashMap<>();
69
settings.put(CompilerOptions.OPTION_Source, javaSpecVersion);
70
settings.put(CompilerOptions.OPTION_TargetPlatform, javaSpecVersion);
0 commit comments