Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 276efe4

Browse files
Bump ECJ so that sources can be compiled with Java 8 target
1 parent 67c27d2 commit 276efe4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<properties>
3434
<commons.collections.version>4.01</commons.collections.version>
3535
<commons.lang.version>3.0.1</commons.lang.version>
36-
<ecj.version>4.3.1</ecj.version>
36+
<ecj.version>4.6.1</ecj.version>
3737
</properties>
3838

3939
<dependencies>

src/main/java/com/querydsl/codegen/utils/ECJEvaluatorFactory.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ public class ECJEvaluatorFactory extends AbstractEvaluatorFactory {
6161

6262
public static CompilerOptions getDefaultCompilerOptions() {
6363
String javaSpecVersion = System.getProperty("java.specification.version");
64-
if (javaSpecVersion.equals("1.8") || (javaSpecVersion.matches("\\d+") && Integer.parseInt(javaSpecVersion) >= 9)) {
65-
javaSpecVersion = "1.7";
66-
}
67-
Map<String, Object> settings = new HashMap<>();
64+
Map<String, String> settings = new HashMap<>();
6865
settings.put(CompilerOptions.OPTION_Source, javaSpecVersion);
6966
settings.put(CompilerOptions.OPTION_TargetPlatform, javaSpecVersion);
7067
settings.put(CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.IGNORE);

0 commit comments

Comments
 (0)