Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit 3e02224

Browse files
committed
8269513: Clarify the spec wrt useOldISOCodes system property
Reviewed-by: lancea, bpb, iris, joehw
1 parent 0dc65d3 commit 3e02224

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/java.base/share/classes/java/util/Locale.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,11 @@
455455
*
456456
* <p>For the backward compatible behavior, the system property
457457
* {@systemProperty java.locale.useOldISOCodes} reverts the behavior
458-
* back to prior to Java SE 17 one. If the system property is set
459-
* to {@code true}, those three current language codes are mapped to their
460-
* backward compatible forms.
458+
* back to that of before Java SE 17. If the system property is set to
459+
* {@code true}, those three current language codes are mapped to their
460+
* backward compatible forms. The property is only read at Java runtime
461+
* startup and subsequent calls to {@code System.setProperty()} will
462+
* have no effect.
461463
*
462464
* <p>The APIs added in 1.7 map between the old and new language codes,
463465
* maintaining the mapped codes internal to Locale (so that

0 commit comments

Comments
 (0)