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

Reply via email to