Skip to content

fixes: #360 challenge for NumberFormatCustomizationTest - #361

Merged
Verdent merged 1 commit into
jakartaee:masterfrom
struberg:challenge360
Mar 13, 2025
Merged

Verdent merged 1 commit into
jakartaee:masterfrom
struberg:challenge360

Conversation

@struberg

Copy link
Copy Markdown
Contributor

A @JsonbNumberFormat(value = "###,###.##") without any specified locale results in a JSON serialisation which is depending on the Locale of the box you run the TCK on. This is not reproducible.

There are 2 ways to define the Locale:

  • with the JsonbNumberFormat#locale attribute
  • with JsonbConfig#withLocale

This test at least pins down the Locale to guarantee reproducible builds.

A @JsonbNumberFormat(value = "###,###.##") without any specified locale
results in a JSON serialisation which is depending on the Locale of the
box you run the TCK on. This is not reproducible.

There are 2 ways to define the Locale:
* with the JsonbNumberFormat#locale attribute
* with JsonbConfig#withLocale

This test at least pins down the Locale to guarantee reproducible builds.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2024 Oracle and/or its affiliates. All rights reserved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to update the version number, as this file is not changed at all.

@mkarg

mkarg commented Dec 23, 2024

Copy link
Copy Markdown
Contributor

@jakartaee/ee4j-jsonb-committers Kindly asking for review of this bug fix.

@Verdent
Verdent merged commit 1256bd4 into jakartaee:master Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants