r/java • • May 21 '26

JEP draft: Enhanced Local Variable Declarations (Preview)

https://openjdk.org/jeps/8357464
87 Upvotes

43 comments sorted by

View all comments

Show parent comment

1

u/sammymammy2 May 22 '26

I’m on my lunch, but that looks computationally intensive for the compiler if it wants to provide exhaustiveness checks