Is there really a jdk.proxy1 module?

Alan Bateman Alan.Bateman at oracle.com
Tue Dec 8 15:17:52 UTC 2015


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


More information about the jigsaw-dev mailing list