MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/ma0y6b/java_lambdas_can_deadlock_parallel_class/grrxjug/?context=3
r/java • u/fredoverflow • Mar 21 '21
46 comments sorted by
View all comments
84
TL;DW Lambda bodies are implemented as private static methods, but during class initialization, other threads are blocked from calling static methods.
1 u/Prateeeek Mar 22 '21 Hey but lambdas are functional interfaces right?, isn't their method public?
1
Hey but lambdas are functional interfaces right?, isn't their method public?
84
u/fredoverflow Mar 21 '21
TL;DW Lambda bodies are implemented as private static methods, but during class initialization, other threads are blocked from calling static methods.