Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
jcs-1.2.7.9.2
-
None
-
None
-
None
Description
I've been looking at the trunk JCS code with findbugs (http://findbugs.sf.net/).
One of the things it does is warn when data is inconsistently synchronized - ie when it is sometimes referenced inside a synchronized block and sometimes not. This is not threadsafe - one thread may read old or inconsistent data.
I've patched all the places findbugs complains about by adding appropriate synchronized() blocks.
I suspect this change may require some discussion