mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 09:13:36 +00:00
Potential fix for #1555
This commit is contained in:
1 parent
87a946f7ee
commit
4ac941acca
2 files changed
+5
-4
No files matched your search
@@ -3,6 +3,7 @@ Lombok Changelog
|
||||
|
||||
### v1.16.21 "Edgy Guinea Pig"
|
||||
* v1.16.20 is the latest stable release of Project Lombok.
|
||||
* Potential fix for Netbeans < 9. [Issue #1555](https://github.com/rzwitserloot/lombok/issues/1555)
|
||||
|
||||
### v1.16.20 (January 9th, 2018)
|
||||
* PLATFORM: Better support for jdk9 in the new IntelliJ, Netbeans and for Gradle.
|
||||
|
||||
@@ -120,23 +120,23 @@ final class LombokFileObjects {
|
||||
return new Java9Compiler(jfm);
|
||||
}
|
||||
}
|
||||
catch (Exception e) {}
|
||||
catch (Throwable e) {}
|
||||
return Compiler.JAVAC7;
|
||||
}
|
||||
if (KNOWN_JAVA9_FILE_MANAGERS.contains(jfmClassName)) {
|
||||
try {
|
||||
return new Java9Compiler(jfm);
|
||||
}
|
||||
catch (Exception e) {}
|
||||
catch (Throwable e) {}
|
||||
}
|
||||
try {
|
||||
if (Class.forName("com.sun.tools.javac.file.BaseFileObject") == null) throw new NullPointerException();
|
||||
return Compiler.JAVAC7;
|
||||
} catch (Exception e) {}
|
||||
} catch (Throwable e) {}
|
||||
try {
|
||||
if (Class.forName("com.sun.tools.javac.util.BaseFileObject") == null) throw new NullPointerException();
|
||||
return Compiler.JAVAC6;
|
||||
} catch (Exception e) {}
|
||||
} catch (Throwable e) {}
|
||||
|
||||
StringBuilder sb = new StringBuilder(jfmClassName);
|
||||
if (jfm != null) {
|
||||
|
||||
Reference in new issue
Block a user