aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-03-24 19:14:10 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-05-23 21:25:30 +0200
commit4152eee126bcb6a0403d3e7a79fe336944031268 (patch)
treea255c5d4815752ca2a31c1e9eba7dd1a888b2f34 /src/core/lombok/javac
parentffb3527daa05c966f40cccb3bbd93133b5775c7b (diff)
downloadlombok-4152eee126bcb6a0403d3e7a79fe336944031268.tar.gz
lombok-4152eee126bcb6a0403d3e7a79fe336944031268.tar.bz2
lombok-4152eee126bcb6a0403d3e7a79fe336944031268.zip
Added a method to obtain latest java language spec supported by host
platform and implemented it for javac BUT NOT FOR ECJ!
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/JavacAST.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java
index 93ea9754..9e15516e 100644
--- a/src/core/lombok/javac/JavacAST.java
+++ b/src/core/lombok/javac/JavacAST.java
@@ -113,6 +113,10 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> {
for (JavacNode child : node.down()) child.traverse(visitor);
}
+ @Override public int getLatestJavaSpecSupported() {
+ return Javac.getJavaCompilerVersion();
+ }
+
/** @return A Name object generated for the proper name table belonging to this AST. */
public Name toName(String name) {
return elements.getName(name);