mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
improve compiler detection for jdk9 later.
This commit is contained in:
1 parent
595a3041a0
commit
3e0cdf5dc2
1 file changed
+4
@@ -130,6 +130,10 @@ final class LombokFileObjects {
|
||||
}
|
||||
catch (Throwable e) {}
|
||||
}
|
||||
try {
|
||||
if (Class.forName("com.sun.tools.javac.file.PathFileObject") == null) throw new NullPointerException();
|
||||
return new Java9Compiler(jfm);
|
||||
} catch (Throwable e) {}
|
||||
try {
|
||||
if (Class.forName("com.sun.tools.javac.file.BaseFileObject") == null) throw new NullPointerException();
|
||||
return Compiler.JAVAC7;
|
||||
|
||||
Reference in new issue
Block a user