On May 11, 2012, at 3:53 PM, Adam Heath wrote:

> 
> The code above that I originally quoted is doing DCL.

You are wrong; the DCL (anti) pattern is:

if (sharedResource == null) {
    synchronized(lock) {
        sharedResource = new Resource();
    }
}

what I did is completely different because scriptClass is a *local* variable; 
please read carefully.

Jacopo

Reply via email to