Javadoc ignores "-locale" and uses default locale for all messages and texts

XMLWordPrintable

    • b27
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Tested with 21 and 25

      A DESCRIPTION OF THE PROBLEM :
      This is a regression of https://bugs.openjdk.org/browse/JDK-8222793 as also @sstenzel already wrote on that issue.
      So please reopen that issue, or fix it again in the course of this one.
      With Java 11 and 17 it works fine, with Java 21 and 25 it is the same behavior as described there.
      JavaDoc tool only uses the locale parameter for the lang attribute and ignores it for localized texts.
      You have to use `-J-Duser.language=en` to work-around the problem in current JDKs.

      REGRESSION : Last worked in version 17.0.17

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Build JavaDoc with locale set to something else than than `user.language`.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Texts are localized correctly
      ACTUAL -
      Texts are localized wrongly.

      ---------- BEGIN SOURCE ----------
      Any code with JavaDoc comments
      ---------- END SOURCE ----------

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: