diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-05-23 22:58:34 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-05-23 22:58:34 +0200 |
commit | 9c1e29842e65bf20895db9e19336b2ca948236ad (patch) | |
tree | 396adccb0d61e049526622956c5ff59b5a32710c /test | |
parent | 4152eee126bcb6a0403d3e7a79fe336944031268 (diff) | |
download | lombok-9c1e29842e65bf20895db9e19336b2ca948236ad.tar.gz lombok-9c1e29842e65bf20895db9e19336b2ca948236ad.tar.bz2 lombok-9c1e29842e65bf20895db9e19336b2ca948236ad.zip |
Added methods to obtain JLS support-level version information from AST/LombokNode. Tests updates to honour these with //version X at the top
of any test file (now also in eclipse, which until now always said it was v6)
Diffstat (limited to 'test')
-rw-r--r-- | test/core/src/lombok/DirectoryRunner.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/src/lombok/DirectoryRunner.java b/test/core/src/lombok/DirectoryRunner.java index 855db023..5325c1e3 100644 --- a/test/core/src/lombok/DirectoryRunner.java +++ b/test/core/src/lombok/DirectoryRunner.java @@ -32,6 +32,7 @@ import java.util.TreeMap; import java.util.regex.Matcher; import java.util.regex.Pattern; +import lombok.eclipse.Eclipse; import lombok.javac.Javac; import org.junit.runner.Description; @@ -53,7 +54,7 @@ public class DirectoryRunner extends Runner { }, ECJ { @Override public int getVersion() { - return 6; + return Eclipse.getEcjCompilerVersion(); } }; |