RFR JDK-8233527: Update Lookup::hasPrivateAccess and Lookup::defineClass spec w.r.t. full power lookup

Mandy Chung mandy.chung at oracle.com
Thu Nov 14 16:04:08 UTC 2019



On 11/14/19 2:33 AM, Alan Bateman wrote:
> On 14/11/2019 04:57, Mandy Chung wrote:
>>
>> Updated in place:
>>
>> http://cr.openjdk.java.net/~mchung/jdk14/8233527/webrev.02/
>> http://cr.openjdk.java.net/~mchung/jdk14/8233527/specdiff/
> The addition of hasFullPrivilegeAccess looks okay and probably the 
> right thing to do.
>
> For the @deprecated message on the old method it might be simpler to 
> say that the method was originally designed to test PRIVATE access but 
> has since changed to test full privilege access. 

It was designed to test full privilege access while private access 
implies full privilege access as a Lookup with private access includes 
module access.

What about:
This method was originally designed to test PRIVATE access as full 
privilege access. Full privilege access necessarily includes module 
access that has since become independent of private access.

Mandy
> I think that would be better than saying anything about "Java SE 14".
>
> -Alan
>
>



More information about the core-libs-dev mailing list