mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
Parsing for source level broken under JDK9 due to change in 1.X->X versioning by oracle.
This commit is contained in:
1 parent
1853b71c05
commit
760a4ec0d3
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user