JDK-8195293 : Issue more comprehensive warnings for use of "var" in earlier source versions
Type:Enhancement
Component:tools
Sub-Component:javac
Affected Version:11
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2018-01-17
Updated:2018-06-30
Resolved:2018-06-20
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.
Under JDK-8189146, the use of the name "var" for a type under pre-10 source levels emits a warning. However, there are other possible uses of the name "var" which merit a warning and those should be added.
Comments
The more complete warnings fix developed during the code review of JDK-8189146 can be pushed to 11 once the fixes for JDK-8189146 propagate there from JDK 10.