Re: RFR: 6378384 (reflect) subclass can’t access superclass’s protected fields and methods by reflection

Peter Levart peter.levart at gmail.com
Tue Oct 18 10:55:36 UTC 2016


Hi Mandy,


On 10/18/2016 01:51 AM, Mandy Chung wrote:
>> >Besides, constant names would not be any prettier than class name string literals. At least now it is obvious to anyone what package a particular class belongs to:
>> >
>> >     "a.Package" vs. A_PACKAGE ?
>> >
> PACKAGE_CLASS_IN_PKG_A
> PUBLIC_SUPERCLASS_IN_PKG_A
> PUBLIC_SUBCLASS_IN_PKG_A
>
> Do the suggested variable names help?

They do. What do you say about this variant (compressionLevel=9):

http://cr.openjdk.java.net/~plevart/jdk9-dev/6378384_Reflection.ensureAccess/webrev.04/

Regards, Peter



More information about the core-libs-dev mailing list