creating proxies for interfaces with default methods
Alan Bateman
Alan.Bateman at oracle.com
Sun Jul 24 08:24:49 UTC 2016
On 23/07/2016 00:12, John Rose wrote:
>
> The Lookup API does not have a "setAccessible" analog.
> Maybe it should; along the lines of Unsafe.privateLookup(Class).
>
Would this be the internal Unsafe or sun.misc.Unsafe? I just wonder if
this is something that would be regretted in the future.
For the original issue then maybe we should look again at providing a
way to invoke a default method from a proxy's invocation handler. Peter
Levart had a reasonable proposal on that. It would of course require a
lot of security eyes to make sure that it is bullet proof.
-Alan
More information about the jigsaw-dev
mailing list