diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-05-24 00:52:37 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-05-24 00:52:37 +0200 |
commit | 6b5a0e2cb349a4fb7d8bb5f943e57a0b65596ca0 (patch) | |
tree | d6f4fca9704322b301fb0b8901c8ab84ad357f58 /test/core/src | |
parent | 9c1e29842e65bf20895db9e19336b2ca948236ad (diff) | |
download | lombok-6b5a0e2cb349a4fb7d8bb5f943e57a0b65596ca0.tar.gz lombok-6b5a0e2cb349a4fb7d8bb5f943e57a0b65596ca0.tar.bz2 lombok-6b5a0e2cb349a4fb7d8bb5f943e57a0b65596ca0.zip |
Fixed more issues related to java7's try-with-resources,
and updated ECJ version detection.
Diffstat (limited to 'test/core/src')
-rw-r--r-- | test/core/src/lombok/RunTestsViaEcj.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index ca443620..12f2e252 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -33,6 +33,7 @@ import java.util.Locale; import java.util.Map; import java.util.concurrent.atomic.AtomicReference; +import lombok.eclipse.Eclipse; import lombok.javac.CapturingDiagnosticListener.CompilerMessage; import org.eclipse.jdt.core.compiler.CategorizedProblem; @@ -43,7 +44,6 @@ import org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy; import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; import org.eclipse.jdt.internal.compiler.batch.CompilationUnit; import org.eclipse.jdt.internal.compiler.batch.FileSystem; -import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.env.ICompilationUnit; import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory; @@ -51,9 +51,9 @@ import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory; public class RunTestsViaEcj extends AbstractRunTests { protected CompilerOptions ecjCompilerOptions() { CompilerOptions options = new CompilerOptions(); - options.complianceLevel = ClassFileConstants.JDK1_6; - options.sourceLevel = ClassFileConstants.JDK1_6; - options.targetJDK = ClassFileConstants.JDK1_6; + options.complianceLevel = Eclipse.getLatestEcjCompilerVersionConstant(); + options.sourceLevel = Eclipse.getLatestEcjCompilerVersionConstant(); + options.targetJDK = Eclipse.getLatestEcjCompilerVersionConstant(); options.parseLiteralExpressionsAsConstants = true; options.inlineJsrBytecode = true; options.reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable = false; |