RFR JDK-8233527: Update Lookup::hasPrivateAccess and Lookup::defineClass spec w.r.t. full power lookup
Mandy Chung
mandy.chung at oracle.com
Wed Nov 13 22:06:50 UTC 2019
On 11/13/19 11:45 AM, Johannes Kuhn wrote:
> This is a good idea, because full privilege access is a new concept,
> and should be mentioned at the places where it is used.
To clarify, "full privilege access" (aka "full power") is not really a
new concept.
Module access was introduced in Java SE 9. A full privilege access
(despite the name of `hasPrivateAccess`) necessarily includes module
privilege. Before JDK-8173978, a Lookup with private access always
includes module privilege. After JDK-8173978, the module privilege has
become independent of private privilege and hence this new
`hasFullPrivilegeAcess` method, a correctly named method, is proposed.
Mandy
More information about the core-libs-dev
mailing list