Usage question

Alan Bateman Alan.Bateman at oracle.com
Wed Sep 28 17:09:02 UTC 2016


On 27/09/2016 17:32, Peter Levart wrote:
>
>
> I see. Well IMO, --add-reads should certainly not imply --add-modules 
> in runtime. But in compile time it would probably be convenient. In 
> that respect, --add-reads is similar to "requires static" a.k.a. 
> provided-scope dependency in Maven. javac produces error if "requires 
> static" dependency is not found, doesn't it?
It should work the same way at both compile time and run time. One 
difference that we get ironed out is error cases where javac does not 
complain. I think it's on Jon's list to create a test to shake out 
issues like this.

As regards --add-reads implying --add-modules then I agree (as 
--add-modules is for adding roots and so is pre-resolution).

-Alan.


More information about the jigsaw-dev mailing list