Skip to content

"new" var type syntax not recognized #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
NicolasAnquetil opened this issue Feb 14, 2025 · 0 comments
Open

"new" var type syntax not recognized #124

NicolasAnquetil opened this issue Feb 14, 2025 · 0 comments

Comments

@NicolasAnquetil
Copy link
Contributor

The "var" type in Java, introduced in Java 10, allows you to declare local variables without explicitly specifying their type; the compiler infers the type based on the assigned value:

var url = new URL("http://www.oracle.com/"); 
var conn = url.openConnection(); 

Requires to update to a more recent version of jdt
Then requires to update the visitors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant