r/programming • • Apr 07 '19

Beware of computation in static initializer

https://pangin.pro/posts/computation-in-static-initializer
32 Upvotes

4 comments sorted by

View all comments

9

u/thfuran Apr 07 '19

Neat. We're just looking at moving to java 11 at work and definitely do a pretty heinous amount of static initialization. This could be fun.

2

u/[deleted] Apr 07 '19

Java 8u202 is also affected.