This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Static initializer and the Singleton pattern
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Weiqi Gao <weiqigao at networkusa dot net>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 05 Dec 2001 21:25:39 +1300
- Subject: Re: Static initializer and the Singleton pattern
- References: <1006478866.1855.0.camel@gao-2001.stlouis.mo.us> <3BFDB9B9.80207@waitaki.otago.ac.nz> <3C0D9FFD.4000006@networkusa.net>
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.