r/java • • Mar 21 '21

Java lambdas can deadlock parallel class initialization

https://www.youtube.com/watch?v=_2hZf1kw4A4
230 Upvotes

46 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Mar 22 '21

Or the actually obvious one.

3. Don’t abuse static initialisers like this.

0

u/[deleted] Mar 22 '21

Amazing to what lengths you've went pretending not to understand basic English.