Joined April 2013
·

Emil Hellman

Gothenburg, Sweden
·
·
·

Posted to Easier Java object initialization over 1 year ago

Doesn't this have the side effect of binding a reference to the class where the anonymous inner class is defined? It's not normally a problem, but I recall having an issue with a @Component in spring containing an annonymous inner class which got called lazyly (much later) over a collection.

Achievements
19 Karma
0 Total ProTip Views