Menu

#10 ConcurrentModificationException

Enhancement
open
nobody
None
5
2006-10-31
2006-10-31
zeta
No

in the AspectSystemImpl class we have

private List aspectList = Collections.synchronizedList
(new LinkedList());

and this aspectList is getting iterated in the
findInterceptors method

but according to the java api specifications
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Coll
ections.html#synchronizedList(java.util.List)

the iteration should be in a synchronized block which
is not the case now. Else it might result in
concurrentmodificationexception comming if more than
one EJB request goes from the same jsp page

Thej

Discussion


Log in to post a comment.

MongoDB Logo MongoDB