diff options
author | Roel Spilker <r.spilker@gmail.com> | 2017-05-15 21:43:18 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-05-15 21:43:18 +0200 |
commit | c640caa3f922daa4656ef161eeb30fc35225da21 (patch) | |
tree | 3551ac49c1f0cee7a6b2fcb7a7249d673d4b9a92 /src/core/lombok/javac/apt | |
parent | 2a3abd04a7ffe30667c63ffb7faa8a3e6dd10e0c (diff) | |
download | lombok-c640caa3f922daa4656ef161eeb30fc35225da21.tar.gz lombok-c640caa3f922daa4656ef161eeb30fc35225da21.tar.bz2 lombok-c640caa3f922daa4656ef161eeb30fc35225da21.zip |
[jdk9] add support for errorprone MaskedFileManager
Diffstat (limited to 'src/core/lombok/javac/apt')
-rw-r--r-- | src/core/lombok/javac/apt/LombokFileObjects.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/javac/apt/LombokFileObjects.java b/src/core/lombok/javac/apt/LombokFileObjects.java index cdb36f7e..49d1c9f8 100644 --- a/src/core/lombok/javac/apt/LombokFileObjects.java +++ b/src/core/lombok/javac/apt/LombokFileObjects.java @@ -98,7 +98,8 @@ final class LombokFileObjects { String jfmClassName = jfm != null ? jfm.getClass().getName() : "null"; if (jfmClassName.equals("com.sun.tools.javac.util.DefaultFileManager")) return Compiler.JAVAC6; if (jfmClassName.equals("com.sun.tools.javac.util.JavacFileManager")) return Compiler.JAVAC6; - if (jfmClassName.equals("com.sun.tools.javac.file.JavacFileManager")) { + if (jfmClassName.equals("com.sun.tools.javac.file.JavacFileManager") || + jfmClassName.equals("com.google.errorprone.MaskedClassLoader$MaskedFileManager")) { try { Class<?> superType = Class.forName("com.sun.tools.javac.file.BaseFileManager"); if (superType.isInstance(jfm)) { |