8270949: Make dynamically generated classes with the class file version of the current release

Reviewed-by: alanb
This commit is contained in:
Mandy Chung 2021-07-21 18:09:38 +00:00
parent b7245c6164
commit ddce47cd3c
8 changed files with 20 additions and 7 deletions

View file

@ -27,6 +27,7 @@ package java.lang.invoke;
import jdk.internal.misc.CDS;
import jdk.internal.misc.Unsafe;
import jdk.internal.misc.VM;
import sun.security.action.GetPropertyAction;
import java.util.Properties;
@ -46,6 +47,7 @@ class MethodHandleStatics {
private MethodHandleStatics() { } // do not instantiate
static final Unsafe UNSAFE = Unsafe.getUnsafe();
static final int CLASSFILE_VERSION = VM.classFileVersion();
static final boolean DEBUG_METHOD_HANDLE_NAMES;
static final boolean DUMP_CLASS_FILES;