RFR: 8345248: Module name 'transitive' not accepted for `requires transitive` [v2]
Jan Lahoda
jlahoda at openjdk.org
Mon Dec 2 13:53:42 UTC 2024
On Fri, 29 Nov 2024 14:30:57 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
>> Considering module named `transitive`, it should be possible to write: `requires transitive;`, which works, and also `requires transitive transitive;`, which currently does not work:
>>
>> $ javac -d out/ --module-source-path . transitive/module-info.java test/module-info.java
>> test/module-info.java:2: error: repeated modifier
>> requires transitive transitive;
>> ^
>> test/module-info.java:2: error: <identifier> expected
>> requires transitive transitive;
>> ^
>> 2 errors
>>
>>
>> The proposed solution is to properly handle lookahead if the transitive flag has already been seen.
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
>
> Fixing test.
FWIW, this is a recent problem caused by:
https://bugs.openjdk.org/browse/JDK-8345058
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22460#issuecomment-2511600234
More information about the compiler-dev
mailing list