| Summary: | ConcurrentModificationException during "Loading referenced grammars" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Jesper Moller <jesper> | ||||
| Component: | wst.xml | Assignee: | Rakesh <rakes123> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | mauromol, nsand.dev, rakes123 | ||||
| Version: | 3.2.1 | Flags: | nsand.dev:
review+
|
||||
| Target Milestone: | 3.3.1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jesper Moller
Created attachment 177508 [details]
patch
I synchronized on whole constructor and not just Iterator to avoid creation of more than one InternalResolvers.Constructor is taking negligible time(tested).Other lists seem to be safe , as they are modified only in constructor.listenerList is also not thread safe.
Passing to Gabriel for review since this pertains to Catalog. I encountered this problem too, with the same stack trace. Patch looks OK. Modified it a bit to account for the clearing of the list and also what the lock is. |