RFR: 8375433: jar should validate automatic module names [v2]
Jorn Vernee
jvernee at openjdk.org
Tue Jan 27 16:55:16 UTC 2026
On Tue, 27 Jan 2026 14:42:17 GMT, Christian Stein <cstein at openjdk.org> wrote:
>> Right.
>>
>>> I mean for cases where there are multiple `module-info.class` files.
>>
>> Which are checked for a single name separately. Thus, comparing an automatic module name with the name from the first compiled module is sufficient.
>
>> Which are checked for a single name separately.
>
> https://github.com/openjdk/jdk/blob/8690d263d9dd0fd06ed41d9529fd8cc84e1c08c8/src/jdk.jartool/share/classes/sun/tools/jar/Validator.java#L494-L496
Ah, gotcha
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29316#discussion_r2732945771
More information about the compiler-dev
mailing list