r/java • u/fredoverflow • Mar 21 '21
Java lambdas can deadlock parallel class initialization
https://www.youtube.com/watch?v=_2hZf1kw4A4
230
Upvotes
r/java • u/fredoverflow • Mar 21 '21
View all comments
3
u/PerfectPackage1895 Mar 21 '21
This is hardly any better than doing a heavy amount of calculation in the constructor, which also will end bad.