-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 21, 25
-
Component/s: tools
-
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 ----------
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 ----------
- relates to
-
JDK-8222793 Javadoc tool ignores "-locale" param and uses default locale for all messages and texts
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/37d8e05e
-
Review(master)
openjdk/jdk/28603