Re: Module.addOpens should log if the package has been opened for illegal access for the caller

2020-12-10 Thread Johannes Kuhn
On 10-Dec-20 8:59, Alan Bateman wrote: On 09/12/2020 22:45, Johannes Kuhn wrote: Hope I got the right mailing list, otherwise please direct me there. Module.addOpens currently doesn't produce an illegal access warning if the target package has only be opened for illegal access. The Module me

Re: Module.addOpens should log if the package has been opened for illegal access for the caller

2020-12-10 Thread Alan Bateman
On 10/12/2020 10:32, Johannes Kuhn wrote: : If a module has been reflectively opened, then no warning should emitted, right. But reflectively opening a package should emit such a warning if you can only do that because it has been opened to you for illegal access. If --add-opens is used to o

Re: Module.addOpens should log if the package has been opened for illegal access for the caller

2020-12-10 Thread Alan Bateman
On 09/12/2020 22:45, Johannes Kuhn wrote: Hope I got the right mailing list, otherwise please direct me there. Module.addOpens currently doesn't produce an illegal access warning if the target package has only be opened for illegal access. The Module methods were not intended to emit warnings