IllegalAccessError even when -XaddExports adds ALL-UNNAMED to the reported module/package

Alan Bateman Alan.Bateman at
Sat Dec 5 10:22:26 UTC 2015

On 05/12/2015 09:03, Roel Spilker wrote:
> Thanks, that was it.
> I must say that the command line got big pretty fast, since I had to export
> several packages.
> How about having to possibility of adding an export to all packages in a
> module?
> -XaddExports:jdk.compiler/*=ALL-UNNAMED
That makes it a bit too easy to break encapsulation on a grand scale, 
I've no doubt it would be abused. I would hope that over time that the 
issues that force you to use -XaddExports will be worked on so that over 
time that the value to the option reduces and is finally eliminated.


More information about the jigsaw-dev mailing list