« Return to Thread: Groovy runs code in static initializers during compile

Re: Groovy runs code in static initializers during compile

by Russel Winder :: Rate this Message:

Reply to Author | View in Thread

On Thu, 2007-04-19 at 16:34 +0200, Aaron Digulla wrote:
> I'm a big fan of static initializers (aka singletons). In Groovy, I  
> when an exception can be thrown in a static initializer, I see this  
> when the plugin compiles the code:

A static initializer is not the same thing as Singleton Pattern.

--
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             russel@...


signature.asc (196 bytes) Download Attachment

 « Return to Thread: Groovy runs code in static initializers during compile