Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.2
-
None
-
None
Description
The fragment:
@Lazy static Type myField
is transformed into a static private field $myField but an instance method getMyField(). The method should be static and in the case of synchronization, would need to synch on the class not 'this'. But there is also a question as to whether double checked locking is best for static, perhaps holder class idiom is better.