diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-02-07 00:49:58 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-02-07 00:49:58 +0100 |
commit | 760a4ec0d35f80bb7aa7089753643ba4c298d62b (patch) | |
tree | 50d39ac20580eb4cd790a84d81e387875603b364 /src/core | |
parent | 1853b71c05ea083b5e103611a617a4d4b7d1c074 (diff) | |
download | lombok-760a4ec0d35f80bb7aa7089753643ba4c298d62b.tar.gz lombok-760a4ec0d35f80bb7aa7089753643ba4c298d62b.tar.bz2 lombok-760a4ec0d35f80bb7aa7089753643ba4c298d62b.zip |
Parsing for source level broken under JDK9 due to change in 1.X->X versioning by oracle.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/javac/JavacAST.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java index af812498..45679fd3 100644 --- a/src/core/lombok/javac/JavacAST.java +++ b/src/core/lombok/javac/JavacAST.java @@ -125,6 +125,8 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> { String nm = Source.instance(context).name(); int underscoreIdx = nm.indexOf('_'); if (underscoreIdx > -1) return Integer.parseInt(nm.substring(underscoreIdx + 1)); + // assume java9+ + return Integer.parseInt(nm); } catch (Exception ignore) {} return 6; } |