On May 27, 2016, at 1:16 AM, Alan Bateman <alan.bate...@oracle.com> wrote:
> 
> I don't think it's possible to create a Lookup via support API with just the 
> PRIVATE lookup mode. It only seems to work because this code seems to hack 
> into the non-public constructor. I'm curious if you invoke toString on this, 
> with JDK 8 and with -esa, as I assume you will get a similar assertion.

The Lookup API does not have a "setAccessible" analog.
Maybe it should; along the lines of Unsafe.privateLookup(Class).
— John

Reply via email to