Proposal: java.lang.reflect.Proxy and default methods
stevenschlansker at gmail.com
Wed Mar 1 21:34:59 UTC 2017
> On Mar 1, 2017, at 1:14 PM, mp911de <mpaluch at paluch.biz> wrote:
> Is there any progress on this issue? In the light of Java 9, the workaround
> MethodHandles.lookup()/unreflectSpecial does not work anymore because
> MethodHandles is encapsulated and calling setAccessible(true) on the
> constructor fails.
> Resolving method handles inside the same module seems to work with public
> but as soon as a module defines an interface with default methods and this
> interface is called by a proxy handler that comes from a different module,
> no longer possible to resolve the MethodHandle.
> Is this the appropriate mailing list for this case?
This is still a sticking point for us too, our (moderately popular) library
currently will not work in Java 9 because of this:
More information about the core-libs-dev