JDK-6415644 : Make javax.lang.model.SourceVersion more informative
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.lang.model
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-04-20
  • Updated: 2017-05-16
  • Resolved: 2016-05-21
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 9
9 b120Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
There are any number of methods that could be added to SourceVersion to make the class more informative about how the language changed over time:

* keywords per version
* legal identifiers per version
* feature supported in a given version
* etc.

Comments
Review thread: http://mail.openjdk.java.net/pipermail/compiler-dev/2016-May/010176.html
17-05-2016

With underscore ("_") being removed from the set of legal identifiers under source level 9 and modules names being treated differently, there may be more cause to add functionality to SourceVersion in 9 compared to earlier releases where the conceptual set of names was more consistently uniform.
04-03-2015

EVALUATION Should be considered for a post-Mustang release.
20-04-2006