<div dir="ltr"><div>Hi,</div><div><br></div><div>Upon reading the JLS, chapter §7.7.1
Module Declaration - Dependences [1], the spec does not mention anything
regarding multiple appearances of the requires modifiers (<span style="font-family:monospace">transitive</span> and <span style="font-family:monospace">static</span>), however javac errs if <span style="font-family:monospace">static</span> is declared multiple times, and if <span style="font-family:monospace">transitive</span>
is declared twice or more consecutively, the second time the token is
consumed as a module name, despite the BNF indicating any amount of <span style="font-family:monospace">{RequiresModifier}</span>
instances; the English description is lacking. Is the Java language
specification wrong, lacking or missing in describing this aspect of compilation of
modular compilation units? Or does javac not abide by it?<br></div><div><br></div><div>[1] <a href="https://docs.oracle.com/javase/specs/jls/se22/html/jls-7.html#jls-7.7.1" target="_blank">https://docs.oracle.com/javase/specs/jls/se22/html/jls-7.html#jls-7.7.1</a></div><div><br></div><div>Regards,</div><div>Emilia López</div></div>