<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Emilia,
<div><br>
</div>
<div>Thanks. Could you file this as a bug and I’ll attend to it?</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Gavin<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On 9 Jun 2024, at 00:16, Emilia López <emilia.lopezf.1999@gmail.com> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<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>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>