diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-01-09 12:58:54 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-01-09 12:58:54 +0100 |
commit | 4ac941acca350b889ae6ccd6f455c992a5e49dce (patch) | |
tree | 4653a8bf579d1ad670aece25adccd2e61341f08b | |
parent | 87a946f7ee3963feccb9f084e74a08c9eda65ff0 (diff) | |
download | lombok-4ac941acca350b889ae6ccd6f455c992a5e49dce.tar.gz lombok-4ac941acca350b889ae6ccd6f455c992a5e49dce.tar.bz2 lombok-4ac941acca350b889ae6ccd6f455c992a5e49dce.zip |
Potential fix for #1555
-rw-r--r-- | doc/changelog.markdown | 1 | ||||
-rw-r--r-- | src/core/lombok/javac/apt/LombokFileObjects.java | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/changelog.markdown b/doc/changelog.markdown index 9c53d446..7172b166 100644 --- a/doc/changelog.markdown +++ b/doc/changelog.markdown @@ -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. diff --git a/src/core/lombok/javac/apt/LombokFileObjects.java b/src/core/lombok/javac/apt/LombokFileObjects.java index ef735730..7184629f 100644 --- a/src/core/lombok/javac/apt/LombokFileObjects.java +++ b/src/core/lombok/javac/apt/LombokFileObjects.java @@ -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) { |