Skip to content

Commit b41c3b7

Browse files
authored
Merge pull request #363 from struberg/fix362
fixes: #362 Locale problem with JsonbNumberFormat
2 parents f3a2332 + 272d158 commit b41c3b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/src/main/java/jakarta/json/bind/annotation/JsonbNumberFormat.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,6 +36,11 @@
3636
* <li> package </li>
3737
* </ul>
3838
*
39+
* <p>Note that even when specifying a pattern, the format of the JSON value also depends on the Locale.
40+
* For best portability it is recommended to either specify the {@link #locale()} or define a default Locale
41+
* for JSON-B via {@link jakarta.json.bind.JsonbConfig#withLocale(java.util.Locale)}.
42+
* </p>
43+
*
3944
* @since JSON Binding 1.0
4045
*/
4146
@JsonbAnnotation

0 commit comments

Comments
 (0)