mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external build: unregister javac extensions when build is finished
Otherwise if several builds are performed in the same java process (e.g. in tests) new instances of JavacFileReferencesRegistrar are registered in each 'buildStarted' method, and this causes failures if some instance become disabled in subsequent runs.
This commit is contained in:
@@ -173,6 +173,7 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
|
||||
@Override
|
||||
public void buildFinished(CompileContext context) {
|
||||
myRefRegistrars.clear();
|
||||
final ConcurrentMap<String, Collection<String>> stats = COMPILER_USAGE_STATISTICS.get(context);
|
||||
if (stats.size() == 1) {
|
||||
final Map.Entry<String, Collection<String>> entry = stats.entrySet().iterator().next();
|
||||
|
||||
Reference in New Issue
Block a user