On 08/12/2015 14:21, Stephane Epardaud wrote:
I'm getting:

java.lang.IllegalAccessException: class
com.redhat.ceylon.model.loader.impl.reflect.mirror.ReflectionAnnotation
(in module com.redhat.ceylon.model) cannot access class
com.sun.proxy.jdk.proxy1.$Proxy3 (in module jdk.proxy1) because module
com.redhat.ceylon.model does not read module jdk.proxy1

The accessibility of the proxy class will be determined based on the accessibility of the proxy interfaces. If there are proxy interfaces is non-exported packages then the proxy will get generated into a dynamic module. I can't quite tell why the proxy class is being accessed here but you probably need to look at the "Package and Module Member of Proxy Class" and "Dynamic Modules" sections of the jlr.Proxy javadoc [1] to get all the details.

-Alan.

[1] http://cr.openjdk.java.net/~mr/jigsaw/spec/api/java/lang/reflect/Proxy.html

Reply via email to