JDK-8257856 : Make ClassFileVersionsTest.java robust to JDK version updates
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang.module
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-07
  • Updated: 2022-02-02
  • Resolved: 2021-12-02
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 17 JDK 18
11.0.15-oracleFixed 17.0.3-oracleFixed 18 b27Fixed
Related Reports
Relates :  
Description
The test ClassFileVersionsTest.java needs updating for each JDK version. It could be refactored to generate the test vectors based on the version.
Comments
@gpatil I wonder what was the reason for backporting this? In 11 and 17 the versions will not change any more... Thanks, Goetz
02-02-2022

Changeset: 8b042d14 Author: Joe Darcy <darcy@openjdk.org> Date: 2021-12-02 18:17:32 +0000 URL: https://git.openjdk.java.net/jdk/commit/8b042d14b78c66b50495d0d8b559ca3f6744d806
02-12-2021

I see ClassFileVersionsTest has been updated at every release but that was never the intention, we can easily re-work it to avoid needing to touch it again.
08-12-2020