Usage question

Peter Levart peter.levart at
Tue Sep 27 16:32:22 UTC 2016

On 09/27/2016 05:41 PM, Alan Bateman wrote:
> On 27/09/2016 15:45, Peter Levart wrote:
>> :
>> Perhaps it is better to separate those two things. For convenience, 
>> there could be another option like --add-requires that would imply 
>> both --add-reads and --add-modules...
> We used to have --add-requires, the reason it was replaced by 
> --add-reads is because "requires" is pre-resolution and so involves 
> augmenting the module descriptor.
> -Alan

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?

Regards, Peter

More information about the jigsaw-dev mailing list