Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.2
-
None
-
Operating System: All
Platform: All
-
38690
Description
The private field 'closed' in BaseObjectPool needs to be volatile because in a
multi-threaded environment sub-classes that don't synchronize access before
calling isOpen() (or asserOpen()) may not see changes to this value in a timely
manner.
In leu of attaching a patch I'll just show the correct declaration for line 82:
private volatile boolean closed = false;