Re: trySetAccessible​

Alan Bateman Alan.Bateman at oracle.com
Wed Aug 23 05:49:39 UTC 2017


On 16/08/2017 02:09, Russell Gold wrote:
> :
>
> but:
>
> method.getDeclaringClass().getModule().isOpen("java.io", callingClass.getModule())
> 		-> true  // which seems to say that it IS open to that particular unnamed module ?!
>
>
As Mandy points out, isOpen(String) is used to test if a package is open 
to all modules. In the example,  java.io is open to all unnamed modules 
but is not open to all modules.

Is the context CORBA and IIOP deserialization? I'm curious what is 
interesting in java.io that isn't provided by the updated 
ReflectionFactory API. As you know, the JDK's java.corba module was 
updated to use this and so avoids depending on java.io internals.

-Alan


More information about the jigsaw-dev mailing list