Lookup objects and setAccessible
Kasper Nielsen
kasperni at gmail.com
Wed Jan 8 19:43:06 UTC 2020
Hi Mandy,
Yes, but they create a member which is not accessible.
As far as I can see, all places where AccessibleObject.override is ever set
there is a check of the current caller with Reflection.getCallerClass().
/Kasper
On Wed, 8 Jan 2020 at 19:25, Mandy Chung <mandy.chung at oracle.com> wrote:
>
> Have you looked at Lookup::revealDirect and MethodHandleInfo::reflectAs?
>
> Mandy
>
More information about the jigsaw-dev
mailing list