Skip to content
Permalink
Browse files

8230047: Remove legacy java.lang.reflect.ProxyGenerator_v49

Reviewed-by: rriggs, sundar
  • Loading branch information
Mandy Chung
Mandy Chung committed Feb 5, 2020
1 parent f133264 commit c0f23a8604bcf96091f762d3288697c68622246f
@@ -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 @@
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 @@ private static void checkProxyAccess(Class<?> caller,
/*
* 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__");

0 comments on commit c0f23a8

Please sign in to comment.