Merge branch 'charphi-master'

This commit is contained in:
Roel Spilker committed 2018-08-27 21:18:19 +02:00
commit 3f4f9e6552
3 files changed
+12 -3

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ Michiel Verheul <cheelio@gmail.com>
Pascal Bihler <pascal@qfs.de>
Peter Grant <petercgrant@users.noreply.github.com>
Philipp Eichhorn <peichhor@web.de>
Philippe Charles <philippe.charles@nbb.be>
Rabea Gransberger <rgra@users.noreply.github.com>
Reinier Zwitserloot <reinier@zwitserloot.com>
Robbert Jan Grootjans <grootjans@gmail.com>
@@ -174,7 +174,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);
@@ -134,11 +134,16 @@ public class JavacHandlerUtil {
return inNetbeansEditor(node.getContext());
}
private static boolean inNetbeansEditor(Context context) {
public static boolean inNetbeansEditor(Context context) {
Options options = Options.instance(context);
return (options.keySet().contains("ide") && !options.keySet().contains("backgroundCompilation"));
}
public static boolean inNetbeansCompileOnSave(Context context) {
Options options = Options.instance(context);
return (options.keySet().contains("ide") && options.keySet().contains("backgroundCompilation"));
}
public static JCTree getGeneratedBy(JCTree node) {
return JCTree_generatedNode.get(node);
}