is ClassLoader.loadClass() supposed to work on module-info classes?

Ali Ebrahimi ali.ebrahimi1781 at gmail.com
Fri Dec 4 10:24:59 UTC 2015


Hi,

On Fri, Dec 4, 2015 at 2:06 AM, Alex Buckley <alex.buckley at oracle.com>
wrote:

> When the author of B decided to shade A, it became B's responsibility to
> configure the readability needed by A's reflective code.
>
In other word, after shading we don't have module A in play but one big
module B.

>
> "But B doesn't know anything about how A works. The shading was only to
> use a different version of A than was observable on the modulepath."


> OK, then shading A wasn't the right solution.

Yes, another option would be multi-layer configurations.

-- 

Best Regards,
Ali Ebrahimi


More information about the jigsaw-dev mailing list