we are using a map with concurrency semantics already built into it.

-Igor


On 4/25/06, Dirk Markert < [EMAIL PROTECTED]> wrote:
After reading this article http://www.javaworld.com/jw-02-2001/jw-0209-double.html about the double-checked locking idiom I looked at resolveClass() in DefaultClassResolver. Comparing the example in the article and the resolveClass() method I got the impression that resolveClass() might not work as expected:
The local variable clz might be not null since another thread working in the synchronized block has just created the reference. Yet, the object behind clz might not be fully constructed. The test clz == null will fail returning a not fully initialized object.

Synchronizing the whole method should fix the problem.

Dirk

Reply via email to