aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorTakuya Murakami <tmurakam@tmurakam.org>2018-03-24 16:31:05 +0900
committerTakuya Murakami <tmurakam@tmurakam.org>2018-03-24 16:31:05 +0900
commit3e0cdf5dc2119dcf860fb9effabc89523dee3975 (patch)
tree9024a44054ef9b72000a3bc6516266d0daa21aba /src/core/lombok
parent595a3041a01602d9a28aefe71bad021353900253 (diff)
downloadlombok-3e0cdf5dc2119dcf860fb9effabc89523dee3975.tar.gz
lombok-3e0cdf5dc2119dcf860fb9effabc89523dee3975.tar.bz2
lombok-3e0cdf5dc2119dcf860fb9effabc89523dee3975.zip
improve compiler detection for jdk9 later.
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/javac/apt/LombokFileObjects.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lombok/javac/apt/LombokFileObjects.java b/src/core/lombok/javac/apt/LombokFileObjects.java
index f74c7d22..aba10540 100644
--- a/src/core/lombok/javac/apt/LombokFileObjects.java
+++ b/src/core/lombok/javac/apt/LombokFileObjects.java
@@ -131,6 +131,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;
} catch (Throwable e) {}