RFR: 8297091: New langtools test jdk/javadoc/doclet/testValueTag/TestValueFormats.java fails on machines with unexpected number format
Pavel Rappo
prappo at openjdk.org
Wed Nov 16 16:40:47 UTC 2022
On Tue, 15 Nov 2022 23:05:04 GMT, Christoph Langer <clanger at openjdk.org> wrote:
> The new test langtools/jdk/javadoc/doclet/testValueTag/TestValueFormats.java assumes a number format with a decimal separator dot (.). This can be different in other locales.
>
> This fixes the issue by expecting a number format that is calculated at runtime, with the locale settings the test runs in. Not sure if it is the correct way to fix, though.
Thanks for reporting the bug and providing the fix. The fix looks simple and clean. We need to specify which locale is used by the `{@value}` tag when it formats the value, in "Documentation Comment Specification for the Standard Doclet".
-------------
PR: https://git.openjdk.org/jdk/pull/11177
More information about the javadoc-dev
mailing list