From 09ac596dd8d01b3fc6e0bc031d1a711d30480333 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Thu, 19 Sep 2024 17:41:30 +0200 Subject: [PATCH] Set ecj target version --- test/core/src/lombok/RunTestsViaEcj.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 5f139095..3a0f02e2 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -95,6 +95,7 @@ public class RunTestsViaEcj extends AbstractRunTests { warnings.put(CompilerOptions.OPTION_ReportNonStaticAccessToStatic, "warning"); warnings.put("org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures", "ignore"); warnings.put(CompilerOptions.OPTION_Source, (ecjCompilerVersion < 9 ? "1." : "") + ecjCompilerVersion); + warnings.put(CompilerOptions.OPTION_TargetPlatform, (ecjCompilerVersion < 9 ? "1." : "") + ecjCompilerVersion); warnings.put("org.eclipse.jdt.core.compiler.codegen.useStringConcatFactory", "disabled"); options.set(warnings); return options;