This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | ConcurrentModificationException when accessing XMLMapAttr | ||
---|---|---|---|
Product: | platform | Reporter: | rmatous <rmatous> |
Component: | -- Other -- | Assignee: | rmatous <rmatous> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
rmatous
2000-11-30 09:36:49 UTC
Fixed in main trunk and release31. All calls are delegated to map = Collections.synchronizedMap(.. I got this exception in Pilsen build 001213_1 when I added breakpoint to JSP and compiled it. jsp1.jsp [-1:-1] java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.next(HashMap.java:736) at org.openide.filesystems.XMLMapAttr.write(XMLMapAttr.java:168) at org.openide.filesystems.DefaultAttributes$Table.writeToXML (DefaultAttributes.java:719) at org.openide.filesystems.DefaultAttributes.saveTable (DefaultAttributes.java:387) at org.openide.filesystems.DefaultAttributes.writeAttribute (DefaultAttributes.java:251) at org.openide.filesystems.AbstractFileObject.setAttribute (AbstractFileObject.java:251) at org.netbeans.modules.web.debug.LineMangler.removeFrom (LineMangler.java:643) at org.netbeans.modules.web.debug.LineMangler.toggleAsAttribute (LineMangler.java:830) at org.netbeans.modules.web.debug.LineMangler.removeAsAttribute (LineMangler.java:666) at org.netbeans.modules.web.debug.PreTranslationCompiler$Group.start (PreTranslationCompiler.java:208) at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompiler.ru n(CompilationEngineImpl.java:255) Fixed in main trunk and release31. In XMLMapAttr in method write: entryIter.remove() is called instead of this.remove(attrName). This should ensure consistency of iterator. Resolved for 3.4.x or earlier, no new info since then -> verified Resolved for 3.4.x or earlier, no new info since then -> closing. |