On Mon, 27 Apr 2026 17:00:28 GMT, Hannes Wallnöfer <[email protected]> wrote:
>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/Navigation.java
>> line 429:
>>
>>> 427: private String getTitle(Element elem) {
>>> 428: return switch (elem) {
>>> 429: case ModuleElement moduleElement -> contents.moduleLabel +
>>> " " + moduleElement.getQualifiedName();
>>
>> I think we should allow localization to customize this order - this is a
>> "right branching" form that doesn't work with languages like Japanese, see
>> https://en.wikipedia.org/wiki/Branching_(linguistics)
>
> I suspected this as well, but it turns out we're using this hardcoded order
> in all module, package and type page headers:
>
> -
> https://github.com/openjdk/jdk/blob/master/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ModuleWriter.java#L270-L272
>
> -
> https://github.com/openjdk/jdk/blob/master/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageWriter.java#L207-L210
>
> -
> https://github.com/openjdk/jdk/blob/master/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ClassWriter.java#L131
Maybe you can record this as a future possible TODO issue in JBS
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30947#discussion_r3149039409