RFR: 8177086: java.lang.reflect.AccessibleObject::canAccess should share access cache with internal method ::checkAccess
blackdrag at gmx.org
Sun Mar 19 22:47:24 UTC 2017
On 19.03.2017 18:52, Peter Levart wrote:
> Module system implementation refresh 2017/2 (JDK-8173393) introduced new
> API method AccessibleObject::canAccess which can be used to test if the
> caller has access to the reflected member (with possible target object
> argument for instance members).
not wanting to hijack the thread, but why is there no canAccess method
that takes a class argument to check if that class can access? Why
always depending so much on caller sensitive methods?
More information about the jigsaw-dev