JDK-8187951 : Update javax.lang.model.SourceVersion for "var" name
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.lang.model
  • Affected Version: 10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2017-09-25
  • Updated: 2018-01-19
  • Resolved: 2018-01-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10 JDK 11
10 b39Fixed 11Fixed
Related Reports
Blocks :  
CSR :  
Relates :  
Description
Local Variable Type Inference adds special handling for the name "var". The name-handling methods in javax.lang.model.SourceVersion should be updated to describe how "var" is handled.

Even if there is no change in behavior, the semantics on var should be documented.
Comments
Review thread: http://mail.openjdk.java.net/pipermail/compiler-dev/2017-September/011112.html
29-09-2017