mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8230047: Remove legacy java.lang.reflect.ProxyGenerator_v49
Reviewed-by: rriggs, sundar
This commit is contained in:
parent
f1332640d4
commit
c0f23a8604
4 changed files with 5 additions and 2045 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
|
@ -297,13 +297,6 @@ public class Proxy implements java.io.Serializable {
|
|||
private static final ClassLoaderValue<Constructor<?>> proxyCache =
|
||||
new ClassLoaderValue<>();
|
||||
|
||||
/**
|
||||
* System property to revert to generation of proxy class files for version 1.5 (V49).
|
||||
* Set to "true" to generate v49 class file format.
|
||||
*/
|
||||
private static final boolean PROXY_GENERATOR_V49 =
|
||||
GetBooleanAction.privilegedGetProperty("jdk.proxy.ProxyGenerator.v49");
|
||||
|
||||
/**
|
||||
* the invocation handler for this proxy instance.
|
||||
* @serial
|
||||
|
@ -541,9 +534,7 @@ public class Proxy implements java.io.Serializable {
|
|||
/*
|
||||
* Generate the specified proxy class.
|
||||
*/
|
||||
byte[] proxyClassFile = PROXY_GENERATOR_V49
|
||||
? ProxyGenerator_v49.generateProxyClass(proxyName, interfaces, accessFlags)
|
||||
: ProxyGenerator.generateProxyClass(loader, proxyName, interfaces, accessFlags);
|
||||
byte[] proxyClassFile = ProxyGenerator.generateProxyClass(loader, proxyName, interfaces, accessFlags);
|
||||
try {
|
||||
Class<?> pc = JLA.defineClass(loader, proxyName, proxyClassFile,
|
||||
null, "__dynamic_proxy__");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue