[jdom-interest] static data needs to be thread data for multithreaded applications

Alex Chaffee guru at edamame.stinky.com
Sat Sep 23 20:10:59 PDT 2000


On Fri, Sep 22, 2000 at 01:16:09PM -0400, bob wrote:
> 
> I guess I'm just missing the point.
> 

Yup :-)

If two threads each add a new namespace at the exact same time, then
the *collection* object (which is static thus shared) will barf with
ConcurrentModificationError.

See my http://www.jguru.com/faq/Threads :-)

 - Alex


-- 
Alex Chaffee                       mailto:alex at jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/



More information about the jdom-interest mailing list