Invoking default methods from a Proxy's InvocationHandler in JDK9
Alan Bateman
Alan.Bateman at oracle.com
Tue Jan 3 07:33:04 UTC 2017
On 03/01/2017 07:17, Remi Forax wrote:
> I do not think that the workaround to create a Lookup object by reflection works with 9 given that java.lang.invoke is not declared as an open package.
>
> John Rose has proposed to add a method to get a private Lookup object through sun.misc.Unsafe but as far as i know, this proposal goes nowhere.
>
I think we got a good place with MethodHandles.privateLookupIn. It's not
going to allow you get a Lookup with private access to types in core
modules such as java.base but it may be useful for some cases.
-Alan.
More information about the jigsaw-dev
mailing list