Author: scabanovich
Date: 2011-11-08 14:09:59 -0500 (Tue, 08 Nov 2011)
New Revision: 36228
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java
Log:
JBIDE-10111
https://issues.jboss.org/browse/JBIDE-10111
Synchronization of set 'processedPaths' is improved.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java 2011-11-08
18:48:23 UTC (rev 36227)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java 2011-11-08
19:09:59 UTC (rev 36228)
@@ -73,7 +73,10 @@
project.getExtensionManager().pathRemoved(p);
}
boolean newRuntimeDetected = false;
- Set<String> processed = new HashSet<String>(processedPaths);
+ Set<String> processed = new HashSet<String>();
+ synchronized(this) {
+ processed.addAll(processedPaths);
+ }
for (int i = 0; i < paths.size(); i++) {
String p = paths.get(i);
if(!requestForLoad(p)) continue;