mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8304542: Convert use of internal VM::classFileVersion to ClassFileFormatVersion
Reviewed-by: alanb
This commit is contained in:
parent
f593a6b52e
commit
bbca7c3ede
5 changed files with 14 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -27,9 +27,9 @@ 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.lang.reflect.ClassFileFormatVersion;
|
||||
import java.util.Properties;
|
||||
|
||||
import static java.lang.invoke.LambdaForm.basicTypeSignature;
|
||||
|
@ -47,8 +47,7 @@ class MethodHandleStatics {
|
|||
private MethodHandleStatics() { } // do not instantiate
|
||||
|
||||
static final Unsafe UNSAFE = Unsafe.getUnsafe();
|
||||
static final int CLASSFILE_VERSION = VM.classFileVersion();
|
||||
|
||||
static final int CLASSFILE_VERSION = ClassFileFormatVersion.latest().major();
|
||||
static final boolean DEBUG_METHOD_HANDLE_NAMES;
|
||||
static final boolean DUMP_CLASS_FILES;
|
||||
static final boolean TRACE_INTERPRETER;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -25,7 +25,6 @@
|
|||
|
||||
package java.lang.reflect;
|
||||
|
||||
import jdk.internal.misc.VM;
|
||||
import jdk.internal.org.objectweb.asm.ClassWriter;
|
||||
import jdk.internal.org.objectweb.asm.Label;
|
||||
import jdk.internal.org.objectweb.asm.MethodVisitor;
|
||||
|
@ -55,7 +54,7 @@ import static jdk.internal.org.objectweb.asm.Opcodes.*;
|
|||
* "generateProxyClass" method.
|
||||
*/
|
||||
final class ProxyGenerator extends ClassWriter {
|
||||
private static final int CLASSFILE_VERSION = VM.classFileVersion();
|
||||
private static final int CLASSFILE_VERSION = ClassFileFormatVersion.latest().major();
|
||||
private static final String JL_CLASS = "java/lang/Class";
|
||||
private static final String JL_OBJECT = "java/lang/Object";
|
||||
private static final String JL_THROWABLE = "java/lang/Throwable";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue