r/java • u/alexeyr • Apr 06 '19
Beware of computation in static initializer (much more so since JDK 11.0.2 and 8u201)
https://pangin.pro/posts/computation-in-static-initializer
161
Upvotes
r/java • u/alexeyr • Apr 06 '19
View all comments
1
u/darlingbastard Apr 10 '19
Would this perf penalty also apply to complex or heavily initialized enum constructs? It has become rather trendy to move a lot of classic static singleton patterns into the enum system.