aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/apt
diff options
context:
space:
mode:
authorPhilippe Charles <philippe.charles@nbb.be>2018-07-11 14:38:07 +0200
committerPhilippe Charles <philippe.charles@nbb.be>2018-07-11 14:38:07 +0200
commit0f23383e33bc6756f1ff3777e7dabc465c9c8c02 (patch)
treeaa9af178536161efdc4502a43f6938eaed3b6149 /src/core/lombok/javac/apt
parent37434ba0cba68ea232efea0824d3f71e5e287dc2 (diff)
downloadlombok-0f23383e33bc6756f1ff3777e7dabc465c9c8c02.tar.gz
lombok-0f23383e33bc6756f1ff3777e7dabc465c9c8c02.tar.bz2
lombok-0f23383e33bc6756f1ff3777e7dabc465c9c8c02.zip
Fix NetBeans 8.x compile-on-save issue.
Diffstat (limited to 'src/core/lombok/javac/apt')
-rw-r--r--src/core/lombok/javac/apt/LombokProcessor.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/lombok/javac/apt/LombokProcessor.java b/src/core/lombok/javac/apt/LombokProcessor.java
index 04b494bf..0e6880e4 100644
--- a/src/core/lombok/javac/apt/LombokProcessor.java
+++ b/src/core/lombok/javac/apt/LombokProcessor.java
@@ -173,7 +173,10 @@ public class LombokProcessor extends AbstractProcessor {
filerFileManagerField.setAccessible(true);
filerFileManagerField.set(javacFiler, newFilerManager);
- replaceFileManagerJdk9(context, newFilerManager);
+ if (lombok.javac.Javac.getJavaCompilerVersion() > 8
+ && !lombok.javac.handlers.JavacHandlerUtil.inNetbeansCompileOnSave(context)) {
+ replaceFileManagerJdk9(context, newFilerManager);
+ }
}
} catch (Exception e) {
throw Lombok.sneakyThrow(e);