Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2
-
None
Description
Under unlucky thread concurrency the getIdleTimeMillis() method of DefaultPooledObject can return a negative value.
I have attached a Junit test that fails most of the times and a simple fix, that doesn't use synchronization: with this fix the Junit test always succeed.