commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22116] - JXPathContextReferenceImpl not thread safe
Date Mon, 04 Aug 2003 21:52:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22116>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22116

JXPathContextReferenceImpl not thread safe





------- Additional Comments From chprasad@hotmail.com  2003-08-04 21:52 -------
Mea culpa, I do see it in the HEAD. However, I'm not sure that the fix is correct. 

What you really need is a readers-writer lock at the least. It's not enough to
just synchronize on the writes. Double-checked locking is also not useful as it
is widely known that DCL is broken in java. See
http://www.javaworld.com/javaworld/jw-02-2001/jw-0209-double_p.html

Mime
View raw message