diff options
author | Takuya Murakami <tmurakam@tmurakam.org> | 2018-03-24 16:31:05 +0900 |
---|---|---|
committer | Takuya Murakami <tmurakam@tmurakam.org> | 2018-03-24 16:31:05 +0900 |
commit | 3e0cdf5dc2119dcf860fb9effabc89523dee3975 (patch) | |
tree | 9024a44054ef9b72000a3bc6516266d0daa21aba /src/core/lombok | |
parent | 595a3041a01602d9a28aefe71bad021353900253 (diff) | |
download | lombok-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.java | 4 |
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) {} |