Use cases for java.lang.Module.addExports

David Holmes david.holmes at oracle.com
Mon Dec 12 06:34:19 UTC 2016


Does addExports only affect reflective access to the module, or does it 
change all access? I'm trying to determine what the set of actions X 
will be such that:

try {
   <X>;
}
catch (<some exception indicating X failed due to lack of export>) {
   execute( () -> mod.addExports(...)); // address the problem
   <X>;  // now it succeeds
}

Thanks,
David


More information about the jigsaw-dev mailing list