javac misalignment with the JLS
Gavin Bierman
gavin.bierman at oracle.com
Fri Jun 21 08:53:56 UTC 2024
Thanks Emilia. That’s very helpful. Don’t worry about the categorisation, we’ll deal with it.
Best wishes,
Gavin
> On 20 Jun 2024, at 23:01, Emilia López <emilia.lopezf.1999 at gmail.com> wrote:
>
> Hi,
>
> The report is now publicly available as JDK-8334172 [1], as delayed as I am.
>
> I did submit it as a javac bug, I was unsure whether it's a compiler
> or a spec issue, but I had to only pick one category.
>
> [1] https://bugs.openjdk.org/browse/JDK-8334172
>
> Thanks. Regards,
> Emilia López
>
>
> On Mon, 10 Jun 2024 at 12:29, Emilia López <emilia.lopezf.1999 at gmail.com> wrote:
>>
>> Hi Gavin,
>>
>> I submitted a bug report through the bug database submission form and
>> it is awaiting triage, thanks.
>>
>> Regards,
>> Emilia López
>>
>>
>> On Mon, 10 Jun 2024 at 05:43, Gavin Bierman <gavin.bierman at oracle.com> wrote:
>>>
>>> Hi Emilia,
>>>
>>> Thanks. Could you file this as a bug and I’ll attend to it?
>>>
>>> Cheers,
>>> Gavin
>>>
>>> On 9 Jun 2024, at 00:16, Emilia López <emilia.lopezf.1999 at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> 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 (transitive and static), however javac errs if static is declared multiple times, and if transitive is declared twice or more consecutively, the second time the token is consumed as a module name, despite the BNF indicating any amount of {RequiresModifier} 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?
>>>
>>> [1] https://docs.oracle.com/javase/specs/jls/se22/html/jls-7.html#jls-7.7.1
>>>
>>> Regards,
>>> Emilia López
>>>
>>>
More information about the compiler-dev
mailing list