JDK-8219254 : Update explicit uses of latest source/target in langtools tests to a property
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-02-18
  • Updated: 2019-02-28
  • Resolved: 2019-02-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 13
13 b10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Dozens of langtools tests are written to have an explicit use of the latest -source or -target value, currently primarily in support of enable preview features where an explicit -source value needs to be passed in to turn on the language feature. (The langtools tests over the years have generally been written or updated to assume the latest source/target and not need an explicit option.)

Needing to update dozens of these tests cause a maintenance hassle when a new release comes around (JDK-8205626), especially as a new release now comes around every six months and a language feature is likely to stay in preview for more than one release cycle (JDK-8214825).

To improve this situation, the tests in question could be refactored to take advantage of the new jtreg capability to pass in named properties in the test definition tags (CODETOOLS-7902352).
Comments
Review thread: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-February/012959.html
19-02-2019