RFR: JDK-8304542: Convert use of internal VM::classFileVersion to ClassFileFormatVersion

Alan Bateman alanb at openjdk.org
Mon Mar 20 19:41:52 UTC 2023


On Mon, 20 Mar 2023 18:44:24 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> Replace calls to `jdk.internal.vm.VM::classFileVersion` with `java.lang.reflect.ClassFileFormatVersion.latest().major()`.   This also fixes jlink SystemModulesPlugin plugin to use CFFV API instead of hardcoding the class file version.

Looks good, I assume you'll bump the copyright header before integrating as this is the first change to a few of these files. I agree it should be easy to merge with Adam's update .

-------------

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/13106#pullrequestreview-1349278021


More information about the core-libs-dev mailing list