-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David,
On 6/14/2009 5:43 PM, David Blevins wrote:
Regardless of that choice we
will still handle sychronization of instantiation, so
double-check-locking or other things will not be necessary.
NB: DCL does not work in Java. Period.
correction: The double checked idiom was fixed in java5. The variable
which is checked needs to be declared as volatile. The link states that
at the bottom.
-Tim
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David,
On 6/14/2009 5:43 PM, David Blevins wrote:
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: [OT] using static helper classes within servlets
NB: DCL does not work in Java. Period.
While that statement was true for 1.4 and prior JVMs, 1.5 actually made DCL
work.
http://www.cs.umd.edu/~pugh/java
On Jun 15, 2009, at 9:32 AM, Christopher Schultz wrote:
On 6/14/2009 5:43 PM, David Blevins wrote:
Regardless of that choice we
will still handle sychronization of instantiation, so
double-check-locking or other things will not be necessary.
NB: DCL does not work in Java. Period.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tim,
On 6/15/2009 12:43 PM, Tim Funk wrote:
correction: The double checked idiom was fixed in java5. The variable
which is checked needs to be declared as volatile. The link states that
at the bottom.
...which is why I said:
There are cases