tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50138] Lack of synchronization in
Date Thu, 21 Oct 2010 13:52:03 GMT

--- Comment #1 from Sebb <> 2010-10-21 09:51:59 EDT ---
That may not be the only bug. 

There are two instances of the following code:

            methodsCache = objectCache.get(targetObject);

If the object is removed between the two statements, then an NPE will follow.

Surely the code should just check whether it got a non-null object?

Also, the private static fields should be final.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message