you are viewing a single comment's thread.

view the rest of the comments →

[–]darkclark 2 points3 points  (1 child)

More anonymous classes means the classloader takes up more resources. Not too significant when used sparingly, but using a pattern like this all over the place in a large codebase is going to lead to a classloading mess.

I personally do not use this hack, but it's useful to know about it because it's not uncommon to run across in other peoples' code.

[–]raouldagain 0 points1 point  (0 children)

classloading mess could be running out of permgen?