mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 20:17:25 +00:00
[jdk9] added debugging information for when we cannot determine the compiler
This commit is contained in:
1 parent
a411a11193
commit
539b2a767f
1 file changed
+9
-1
@@ -116,7 +116,15 @@ final class LombokFileObjects {
|
||||
if (Class.forName("com.sun.tools.javac.util.BaseFileObject") == null) throw new NullPointerException();
|
||||
return Compiler.JAVAC6;
|
||||
} catch (Exception e) {}
|
||||
return null;
|
||||
|
||||
StringBuilder sb = new StringBuilder(jfmClassName);
|
||||
if (jfm != null) {
|
||||
sb.append(" extends ").append(jfm.getClass().getSuperclass().getName());
|
||||
for (Class<?> cls : jfm.getClass().getInterfaces()) {
|
||||
sb.append(" implements ").append(cls.getName());
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException(sb.toString());
|
||||
}
|
||||
|
||||
static JavaFileObject createEmpty(Compiler compiler, String name, Kind kind) {
|
||||
|
||||
Reference in new issue
Block a user