This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Static initializer and the Singleton pattern


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]