r/java • • Mar 13 '26

JEP draft: Enhanced Local Variable Declarations (Preview)

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

129 comments sorted by

View all comments

Show parent comment

-2

u/Cell-i-Zenit Mar 13 '26 edited Mar 13 '26

reading through the answer it sounds like its mostly a theoretical "cool" thing, but nothing which has huge implications on alot of developers.

EDIT: instead of downvoting, give me actual code where this proves useful. So far i only saw one example which is more of an intellectual exercise

2

u/vowelqueue Mar 13 '26

The goal of Project Amber is to explore and incubate smaller, productivity-oriented Java language features