Static initializer and the Singleton pattern

Bryce McKinlay bryce@waitaki.otago.ac.nz
Wed Dec 5 00:26:00 GMT 2001


Weiqi Gao wrote:
>> Hmm... the problem is that GCJ is calling the static initializer for 
>> B from Main.main() before it calls A.getInstance().
>>>> Is gcj correct in doing it?
>No, its a bug. Would you mind filing a PR?
regards
Bryce.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /