JDK-8206083 : Make tools/javac/api/T6265137.java robust to JDK version changes
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-06-28
  • Updated: 2021-07-21
  • Resolved: 2018-06-29
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 11 JDK 12
11.0.13-oracleFixed 12 b01Fixed
Related Reports
Relates :  
Description
The javac test

tools/javac/api/T6265137.java

uses a hard-coding -target value. The test could be made robust to JDK version changes, meaning it would not need to be updated on version changes, if it created the target argument based on some other version information, such as Runtime.version() or extracted from the SourceVersion enum.
Comments
Fix request (11u): Request to backport this test update for parity with Oracle. Change didn't apply cleanly, the Java major version changed between JDK11 and 12 which had to be resolved. PR acked by Martin. Test still passes in SAP's nightlies, risk is low since it is a test update.
21-07-2021