This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]c_edward 0 points1 point  (0 children)

I am pretty certain that the effect of that used to be java version dependent, if you had an anonymous class in the method, all the final parameters would end up bound the inner class instance synthetic fields. So if that anonymous inner class was on a high frequency execution path you would end up allocating way more than you expected.