mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
correctly implement exclusions from annotation processing (IDEA-69349)
This commit is contained in:
+5
-2
@@ -115,9 +115,12 @@ public class AnnotationProcessingCompiler implements TranslatingCompiler{
|
||||
}
|
||||
|
||||
private boolean isExcludedFromAnnotationProcessing(VirtualFile file, CompileContext context) {
|
||||
if (!context.isAnnotationProcessorsEnabled()) {
|
||||
return true;
|
||||
}
|
||||
final Module module = context.getModuleByFile(file);
|
||||
if (module != null) {
|
||||
if (!context.isAnnotationProcessorsEnabled()) {
|
||||
if (!myConfig.isAnnotationProcessingEnabled(module)) {
|
||||
return true;
|
||||
}
|
||||
final String path = CompilerPaths.getAnnotationProcessorsGenerationPath(module);
|
||||
@@ -141,7 +144,7 @@ public class AnnotationProcessingCompiler implements TranslatingCompiler{
|
||||
}
|
||||
|
||||
private JavacCompiler getBackEndCompiler() {
|
||||
CompilerConfigurationImpl configuration = (CompilerConfigurationImpl)CompilerConfiguration.getInstance(myProject);
|
||||
CompilerConfigurationImpl configuration = (CompilerConfigurationImpl)myConfig;
|
||||
return configuration.getJavacCompiler();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user