RFR [9] Moved sun.misc.ProxyGenerator to jdk.internal.reflect

Chris Hegarty chris.hegarty at oracle.com
Tue Dec 15 18:41:51 UTC 2015


On 15 Dec 2015, at 17:15, Mandy Chung <mandy.chung at oracle.com> wrote:

> 
>> On Dec 15, 2015, at 4:00 AM, Chris Hegarty <chris.hegarty at oracle.com> wrote:
>> 
>> No new code here, just giving sun.misc.ProxyGenerator a more appropriate
>> location, in jdk.internal.reflect ( since it contains the code to generate a dynamic
>> proxy class for the java.lang.reflect.Proxy ).
>> 
>> http://cr.openjdk.java.net/~chegar/proxyGeneratorWebrev/webrev/
>> 
>> Note: ProxyGenerator could be moved into java.lang.reflect, as a 
>> package-private class, but I see no reason to move it into an exported
>> package, and a package that it not on the restricted package list. 
> 
> ProxyGenerator is only used by Proxy (it was used by other JDK code previously).  

Ah ok. That somewhat explains its current location in sun.misc.

> I would prefer it moving to java.lang.reflect as package-private class in java.lang.reflect since we are moving it.

I have no objection. Webrev updated in-place.

-Chris.




More information about the core-libs-dev mailing list