Proxy classes and reflection (IllegalAccessException)
Alan Bateman
Alan.Bateman at oracle.com
Thu Apr 7 13:12:17 UTC 2016
On 07/04/2016 13:13, Stephane Epardaud wrote:
> IIRC RestEasy needs to add a module read to that Class's module it
> wants to create a Proxy of.
It looks like RestEasy is an unnamed modules, maybe the class path, and
as we all know here, unnamed modules reads all other modules. One thing
to point out is that Constructor::newInstance assumes readability.
In any case, the exception suggests the proxy is in a dynamic module so
it can't be directly instantiated. All the details are in the javadoc.
-Alan
More information about the jigsaw-dev
mailing list