Skip to content
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

[java] Prepare for Java 10 #743

Closed
jsotuyod opened this issue Nov 21, 2017 · 3 comments
Closed

[java] Prepare for Java 10 #743

jsotuyod opened this issue Nov 21, 2017 · 3 comments
Assignees
Labels
an:enhancement An improvement on existing features / rules
Milestone

Comments

@jsotuyod
Copy link
Member

jsotuyod commented Nov 21, 2017

Java 10 (aka. Java 18.3) is going to introduce the local-variable declaration syntax var XXX = ...;

This requires the type of the variable to be inferred from the type of the expression used to initialize it. We will therefore need to heavily work on type resolution to get this fully supported.

Also, this will possibly break a bunch of rules that assume the type of the variable can be found by looking at the declaration. We will be forced to always use type resolution to achieve this.

The full JEP can be found here: http://openjdk.java.net/jeps/286

@adangel
Copy link
Member

adangel commented Jan 22, 2018

Schedule and features: http://openjdk.java.net/projects/jdk/10/
Builds are available at: http://jdk.java.net/10/
Java 10 is planned to be released in March 2018 (General Availability).

@adangel adangel changed the title [java] Prepare for Java 18.3 [java] Prepare for Java 10 Feb 21, 2018
@adangel
Copy link
Member

adangel commented Mar 2, 2018

@adangel
Copy link
Member

adangel commented Apr 30, 2018

@adangel adangel self-assigned this Apr 30, 2018
adangel added a commit to adangel/pmd that referenced this issue May 11, 2018
@adangel adangel added the has:pr label May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
an:enhancement An improvement on existing features / rules
Projects
None yet
Development

No branches or pull requests

2 participants