Re: RFR: 8363972: Loose matching of dash/minusSign in number parsing [v6]

2025-08-01 Thread Justin Lu
On Fri, 1 Aug 2025 19:05:27 GMT, Naoto Sato wrote: >> Enabling lenient minus sign matching when parsing numbers. In some locales, >> e.g. Finnish, the default minus sign is the Unicode "Minus Sign" (U+2212), >> which is not the "Hyphen Minus" (U+002D) that users type in from keyboard. >> Thus

[jdk25] Integrated: 8364370: java.text.DecimalFormat specification indentation correction

2025-08-01 Thread Justin Lu
On Fri, 1 Aug 2025 20:14:46 GMT, Justin Lu wrote: > Please review this PR which is a backport of commit > [8e921aee](https://github.com/openjdk/jdk/commit/8e921aee5abb20c240b45cb75b06fb1f316d8a1f) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > It is a t

Re: RFR: 8363972: Loose matching of dash/minusSign in number parsing [v4]

2025-08-01 Thread Justin Lu
On Fri, 1 Aug 2025 19:08:37 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/text/DecimalFormat.java line 422: >> >>> 420: * @implNote The default implementation follows the LDML specification >>> for >>> 421: * {@code parseLenient} elements to interpret minus sign patterns when >>

[jdk25] RFR: 8364370: java.text.DecimalFormat specification indentation correction

2025-08-01 Thread Justin Lu
Please review this PR which is a backport of commit [8e921aee](https://github.com/openjdk/jdk/commit/8e921aee5abb20c240b45cb75b06fb1f316d8a1f) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. It is a trivial doc-only change to correct indentation alignment in the class specificat

Integrated: 8364370: java.text.DecimalFormat specification indentation correction

2025-08-01 Thread Justin Lu
On Thu, 31 Jul 2025 23:12:56 GMT, Justin Lu wrote: > Please review this doc only PR. > > java.text.DecimalFormat uses an implSpec tag in the middle of the class > description. This location was on purpose as the contents related to the > surrounding section. However, this ha

Re: RFR: 8364370: java.text.DecimalFormat specification indentation correction

2025-08-01 Thread Justin Lu
On Thu, 31 Jul 2025 23:12:56 GMT, Justin Lu wrote: > Please review this doc only PR. > > java.text.DecimalFormat uses an implSpec tag in the middle of the class > description. This location was on purpose as the contents related to the > surrounding section. However, this ha

Re: RFR: 8364370: java.text.DecimalFormat specification indentation correction

2025-08-01 Thread Justin Lu
On Thu, 31 Jul 2025 23:21:17 GMT, Chen Liang wrote: >> Please review this doc only PR. >> >> java.text.DecimalFormat uses an implSpec tag in the middle of the class >> description. This location was on purpose as the contents related to the >> surrounding section. However, this has caused slig

Re: RFR: 8363972: Loose matching of dash/minusSign in number parsing [v4]

2025-08-01 Thread Justin Lu
On Thu, 31 Jul 2025 22:30:35 GMT, Naoto Sato wrote: >> Enabling lenient minus sign matching when parsing numbers. In some locales, >> e.g. Finnish, the default minus sign is the Unicode "Minus Sign" (U+2212), >> which is not the "Hyphen Minus" (U+002D) that users type in from keyboard. >> Thus

Re: RFR: 8363972: Loose matching of dash/minusSign in number parsing [v2]

2025-07-31 Thread Justin Lu
On Thu, 31 Jul 2025 22:04:56 GMT, Naoto Sato wrote: >> Enabling lenient minus sign matching when parsing numbers. In some locales, >> e.g. Finnish, the default minus sign is the Unicode "Minus Sign" (U+2212), >> which is not the "Hyphen Minus" (U+002D) that users type in from keyboard. >> Thus

RFR: 8364370: java.text.DecimalFormat specification indentation correction

2025-07-31 Thread Justin Lu
Please review this doc only PR. java.text.DecimalFormat uses an implSpec tag in the middle of the class description. This location was on purpose as the contents related to the surrounding section. However, this has caused slight indentation in the rest of the class description below the tag (a

Re: RFR: 8355522: Remove the `java.locale.useOldISOCodes` system property [v3]

2025-07-23 Thread Justin Lu
On Tue, 22 Jul 2025 22:25:33 GMT, Naoto Sato wrote: >> This PR removes the system property deprecated in JDK 25. If the property is >> specified at runtime, a warning will be emitted at startup to inform the >> user that the value is ignored. A corresponding CSR has been drafted as well > > Nao

Re: RFR: 8355522: Remove the `java.locale.useOldISOCodes` system property [v3]

2025-07-22 Thread Justin Lu
On Tue, 22 Jul 2025 22:22:40 GMT, Naoto Sato wrote: >> This PR removes the system property deprecated in JDK 25. If the property is >> specified at runtime, a warning will be emitted at startup to inform the >> user that the value is ignored. A corresponding CSR has been drafted as well > > Nao

Re: RFR: 8355522: Remove the `java.locale.useOldISOCodes` system property [v2]

2025-07-22 Thread Justin Lu
On Tue, 22 Jul 2025 22:01:10 GMT, Naoto Sato wrote: >> This PR removes the system property deprecated in JDK 25. If the property is >> specified at runtime, a warning will be emitted at startup to inform the >> user that the value is ignored. A corresponding CSR has been drafted as well > > Nao

Re: RFR: 8355522: Remove the `java.locale.useOldISOCodes` system property

2025-07-22 Thread Justin Lu
On Mon, 21 Jul 2025 22:56:50 GMT, Naoto Sato wrote: > This PR removes the system property deprecated in JDK 25. If the property is > specified at runtime, a warning will be emitted at startup to inform the user > that the value is ignored. A corresponding CSR has been drafted as well Should we

Re: RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v6]

2025-07-21 Thread Justin Lu
On Mon, 16 Jun 2025 21:19:45 GMT, Johannes Graham wrote: >> This PR replaces construction of intermediate strings to be parsed with more >> direct manipulation of numbers. It also has a more streamlined mechanism of >> handling `Long.MIN_VALUE` when parsing longs by using >> `Long.parseUnsigne

Re: RFR: 8362448: Make use of the Double.toString(double) algorithm in java.text.DecimalFormat [v2]

2025-07-17 Thread Justin Lu
On Thu, 17 Jul 2025 19:06:25 GMT, Raffaello Giulietti wrote: >> src/java.base/share/classes/jdk/internal/math/FloatingDecimal.java line 1769: >> >>> 1767: * fields (> 550 lines). >>> 1768: */ >>> 1769: private static BinaryToASCIIConverter >>> getCompatBinaryToASCIIConverter(doub

Re: RFR: 8362448: Make use of the Double.toString(double) algorithm in java.text.DecimalFormat [v2]

2025-07-17 Thread Justin Lu
On Thu, 17 Jul 2025 12:28:06 GMT, Raffaello Giulietti wrote: >> Align the behavior of `DecimalFormat` on `double`s with that of `Formatter`. > > Raffaello Giulietti has updated the pull request incrementally with one > additional commit since the last revision: > > Added comment to COMPAT st

Re: RFR: 8361717: Refactor Collections.emptyList() in Locale related classes

2025-07-09 Thread Justin Lu
On Wed, 9 Jul 2025 18:39:40 GMT, Naoto Sato wrote: > Replaced Collections.emptyList() with List.of() as part of refactoring. This > was discussed in the context of investigating a CDS-related issue > (https://bugs.openjdk.org/browse/JDK-8357281?focusedId=14796714&page=com.atlassian.jira.plugin.

Re: RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v3]

2025-06-16 Thread Justin Lu
On Fri, 13 Jun 2025 19:34:40 GMT, Johannes Graham wrote: >> Ah got it, I see your point. We would have goten underflow in >> `ASCIIToBinaryConverter.doubleValue()` for some extreme cases without a >> check. >> >> Is there a specific example you have that requires the switch to the newer >> c

Re: RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v3]

2025-06-12 Thread Justin Lu
On Thu, 12 Jun 2025 15:26:55 GMT, Johannes Graham wrote: >> src/java.base/share/classes/jdk/internal/math/FloatingDecimal.java line 1841: >> >>> 1839: >>> 1840: static ASCIIToBinaryConverter readDoubleSignlessDigits(int >>> decExp, char[] digits, int length) { >>> 1841: if (decExp

Re: RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v2]

2025-06-11 Thread Justin Lu
On Mon, 9 Jun 2025 23:44:20 GMT, Justin Lu wrote: >> Johannes Graham has updated the pull request incrementally with one >> additional commit since the last revision: >> >> catch ArithmeticException > > src/java.base/share/classes/jdk/internal/math/FloatingDeci

Re: RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v3]

2025-06-11 Thread Justin Lu
On Tue, 10 Jun 2025 15:41:47 GMT, Johannes Graham wrote: >> This PR replaces construction of intermediate strings to be parsed with more >> direct manipulation of numbers. It also has a more streamlined mechanism of >> handling `Long.MIN_VALUE` when parsing longs by using >> `Long.parseUnsigne

Re: RFR: 8358819: The first year is not displayed correctly in Japanese Calendar

2025-06-11 Thread Justin Lu
On Tue, 10 Jun 2025 18:36:15 GMT, Naoto Sato wrote: > This regression was introduced by the removal of the COMPAT locale provider, > which partially broke support for the first year in the Japanese calendar. In > the Japanese calendar system, the first year of an era should be formatted > usin

Re: RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v2]

2025-06-09 Thread Justin Lu
On Mon, 9 Jun 2025 22:46:50 GMT, Johannes Graham wrote: >> This PR replaces construction of intermediate strings to be parsed with more >> direct manipulation of numbers. It also has a more streamlined mechanism of >> handling `Long.MIN_VALUE` when parsing longs by using >> `Long.parseUnsigned

Re: RFR: 8358734: Remove JavaTimeSupplementary resource bundles [v2]

2025-06-09 Thread Justin Lu
On Mon, 9 Jun 2025 20:07:53 GMT, Naoto Sato wrote: >> The parallel loading of JavaTimeSupplementary was a historical artifact from >> the introduction of JSR 310, which additionally loads resouces that had not >> existed before. Since the COMPAT locale provider which relied on this >> mechanis

Re: RFR: 8358426: Improve lazy computation in Locale [v2]

2025-06-09 Thread Justin Lu
On Sat, 7 Jun 2025 17:36:40 GMT, Johannes Graham wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> review - Moving all ISO resources to LocaleISOData & blessed modifier >> order for l

Re: RFR: 8358426: Improve lazy computation in Locale [v2]

2025-06-09 Thread Justin Lu
On Thu, 5 Jun 2025 20:29:48 GMT, Justin Lu wrote: >> Please review this PR which improves occurrences of lazy computation in >> `Locale` and `BaseLocale`. >> >> Existing lazy initialization strategies such as CHM, static nested class, >> and local inner class a

Integrated: 8358426: Improve lazy computation in Locale

2025-06-09 Thread Justin Lu
On Wed, 4 Jun 2025 21:20:46 GMT, Justin Lu wrote: > Please review this PR which improves occurrences of lazy computation in > `Locale` and `BaseLocale`. > > Existing lazy initialization strategies such as CHM, static nested class, and > local inner class are replaced wit

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API

2025-06-09 Thread Justin Lu
On Mon, 9 Jun 2025 18:17:45 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring t

Re: RFR: 8358520: Improve lazy computation in BreakIteratorResourceBundle and related classes

2025-06-05 Thread Justin Lu
On Tue, 3 Jun 2025 20:14:31 GMT, Per Minborg wrote: > This PR proposes to simplify lazy computation related to resource bundles. > Previously, some objects were computed lazily using a double-checked locking > algorithm. StableValues offers a more robust and succinct solution. > > > This P

Re: RFR: 8358520: Improve lazy computation in BreakIteratorResourceBundle and related classes

2025-06-05 Thread Justin Lu
On Tue, 3 Jun 2025 20:14:31 GMT, Per Minborg wrote: > This PR proposes to simplify lazy computation related to resource bundles. > Previously, some objects were computed lazily using a double-checked locking > algorithm. StableValues offers a more robust and succinct solution. > > > This P

Re: RFR: 8358426: Improve lazy computation in Locale [v2]

2025-06-05 Thread Justin Lu
represented as a SV. Also, I did not think it was necessary to maintain a > SV for _both_ the array and set of ISO3166-1 alpha-2 codes. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: review - Moving all ISO resources to Loca

Re: RFR: 8358426: Improve lazy computation in Locale

2025-06-05 Thread Justin Lu
On Thu, 5 Jun 2025 11:50:01 GMT, Johannes Döbler wrote: >> Please review this PR which improves occurrences of lazy computation in >> `Locale` and `BaseLocale`. >> >> Existing lazy initialization strategies such as CHM, static nested class, >> and local inner class are replaced with Stable Val

RFR: 8358426: Improve lazy computation in Locale

2025-06-04 Thread Justin Lu
Please review this PR which improves occurrences of lazy computation in `Locale` and `BaseLocale`. Existing lazy initialization strategies such as CHM, static nested class, and local inner class are replaced with Stable Values. Lambda usage is intentionally avoided in this change during `Locale

Integrated: 8358170: Repurpose testCompat in test/jdk/java/util/TimeZone/Bug8167143.java

2025-06-04 Thread Justin Lu
On Tue, 3 Jun 2025 16:47:20 GMT, Justin Lu wrote: > Please review this PR which modifies the > test/jdk/java/util/TimeZone/Bug8167143.java "testCompat" case to be > repurposed to check the implicit locales for the FALLBACK BreakIterator and > Collator providers. (F

Integrated: 8358449: Locale.getISOCountries does not specify the returned set is unmodifiable

2025-06-04 Thread Justin Lu
On Tue, 3 Jun 2025 17:13:45 GMT, Justin Lu wrote: > Please review this trivial doc correction to > `Locale.getISOCountries(Locale.IsoCountryCode type)` which makes it apparent > that the returned Set is unmodifiable. Associated CSR filed. This pull request has now been integrated.

RFR: 8358449: Locale.getISOCountries does not specify the returned set is unmodifiable

2025-06-03 Thread Justin Lu
Please review this trivial doc correction to `Locale.getISOCountries(Locale.IsoCountryCode type)` which makes it apparent that the returned Set is unmodifiable. Associated CSR filed. - Commit messages: - init Changes: https://git.openjdk.org/jdk/pull/25622/files Webrev: https://

Re: RFR: 8358449: Locale.getISOCountries does not specify the returned set is unmodifiable

2025-06-03 Thread Justin Lu
On Tue, 3 Jun 2025 18:17:17 GMT, Naoto Sato wrote: >> Please review this trivial doc correction to >> `Locale.getISOCountries(Locale.IsoCountryCode type)` which makes it apparent >> that the returned Set is unmodifiable. Associated CSR filed. > > Looks good. Reviewed the CSR too, but not sure i

Re: RFR: 8358170: Repurpose testCompat in test/jdk/java/util/TimeZone/Bug8167143.java [v2]

2025-06-03 Thread Justin Lu
On Tue, 3 Jun 2025 17:40:19 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> review - var rename > > test/jdk/java/util/TimeZone/Bug8167143.java line 239: > >>

Re: RFR: 8358170: Repurpose testCompat in test/jdk/java/util/TimeZone/Bug8167143.java [v2]

2025-06-03 Thread Justin Lu
Since > the method is corrected, it can be re-added as a test case. This change stems > from discussion in https://git.openjdk.org/jdk/pull/25532. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: review - var rename --

RFR: 8358170: Repurpose testCompat in test/jdk/java/util/TimeZone/Bug8167143.java

2025-06-03 Thread Justin Lu
Please review this PR which modifies the test/jdk/java/util/TimeZone/Bug8167143.java "testCompat" case to be repurposed to check the implicit locales for the FALLBACK BreakIterator and Collator providers. (FALLBACK is the primary provider in those cases.) Since the method is corrected, it can b

Integrated: 8358095: Cleanup tests with explicit locale provider set to only CLDR

2025-06-03 Thread Justin Lu
On Thu, 29 May 2025 21:59:30 GMT, Justin Lu wrote: > Please review this PR which cleans up some i18n tests. > > There are some i18n related tests that set the locale provider to CLDR (and > only CLDR). Since JDK9, this is redundant and equivalent to the default. > Thus,

Re: RFR: 8358095: Cleanup tests with explicit locale provider set to only CLDR [v3]

2025-06-03 Thread Justin Lu
On Fri, 30 May 2025 17:02:12 GMT, Justin Lu wrote: >> Please review this PR which cleans up some i18n tests. >> >> There are some i18n related tests that set the locale provider to CLDR (and >> only CLDR). Since JDK9, this is redundant and equivalent to the default.

Integrated: 8358089: Remove the GenerateKeyList.java test tool

2025-05-30 Thread Justin Lu
On Thu, 29 May 2025 19:01:04 GMT, Justin Lu wrote: > Please review this PR which removes the test tool `GenerateKeyList.java` > after the COMPAT locale data removal. > > `LocaleDataTest.java` may optionally use the `GenerateKeyList.java` tool. > However, this tool is manual

Re: RFR: 8358095: Cleanup tests with explicit locale provider set to only CLDR [v3]

2025-05-30 Thread Justin Lu
On Fri, 30 May 2025 00:41:12 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> re-add testCompat to Bug8167143.java > > test/jdk/java/util/TimeZone/Bug8167143.java line 10

Re: RFR: 8358095: Cleanup tests with explicit locale provider set to only CLDR [v3]

2025-05-30 Thread Justin Lu
are just extra noise for > these tests. > > As this change is trivial cleanup, bug IDs are not updated in this change. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: re-add testCompat to Bug8167143.java - Changes

Re: RFR: 8358095: Cleanup tests with explicit locale provider set to only CLDR

2025-05-29 Thread Justin Lu
On Thu, 29 May 2025 22:47:11 GMT, Naoto Sato wrote: >> Please review this PR which cleans up some i18n tests. >> >> There are some i18n related tests that set the locale provider to CLDR (and >> only CLDR). Since JDK9, this is redundant and equivalent to the default. >> Thus, occurrences of "-

Re: RFR: 8358095: Cleanup tests with explicit locale provider set to only CLDR [v2]

2025-05-29 Thread Justin Lu
are just extra noise for > these tests. > > As this change is trivial cleanup, bug IDs are not updated in this change. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: reflect review: strip othervm mode + cleanup

RFR: 8358095: Cleanup tests with explicit locale provider set to only CLDR

2025-05-29 Thread Justin Lu
Please review this PR which cleans up some i18n tests. There are some i18n related tests that set the locale provider to CLDR (and only CLDR). Since JDK9, this is redundant and equivalent to the default. Thus, occurrences of "-Djava.locale.providers=CLDR" are just extra noise for these tests.

Re: RFR: 8357886: Remove TimeZoneNames_* of the COMPAT locale data provider

2025-05-29 Thread Justin Lu
On Thu, 29 May 2025 16:54:01 GMT, Naoto Sato wrote: > These resource files are remnants from the removal of the COMPAT locale > provider. Since the COMPAT provider has been removed, these localizations > should also be cleaned up. Looks good. - Marked as reviewed by jlu (Committe

Re: RFR: 8358089: Remove the GenerateKeyList.java test tool [v2]

2025-05-29 Thread Justin Lu
On Thu, 29 May 2025 21:15:57 GMT, Justin Lu wrote: >> Please review this PR which removes the test tool `GenerateKeyList.java` >> after the COMPAT locale data removal. >> >> `LocaleDataTest.java` may optionally use the `GenerateKeyList.java` tool. >> However,

Re: RFR: 8358089: Remove the GenerateKeyList.java test tool [v2]

2025-05-29 Thread Justin Lu
There is no longer any point to keep it, and it can always be retrieved via > the VCS if needed. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: reflect some corrections - Changes: - all: https://git.openjdk.org/jdk/pul

RFR: 8358089: GenerateKeyList.java COMPAT removal update

2025-05-29 Thread Justin Lu
Please review this PR which updates the test tool `GenerateKeyList.java` after the COMPAT locale data removal. `LocaleDataTest.java` may optionally use the `GenerateKeyList.java` tool; the latter requires similar bundle name changes that were made to the former in https://bugs.openjdk.org/brows

Integrated: 8357275: Locale.Builder.setLanguageTag should mention conversions made on language tag

2025-05-29 Thread Justin Lu
On Mon, 19 May 2025 20:56:55 GMT, Justin Lu wrote: > It is not clear that `Locale.Builder.setLanguageTag(String)` accepts > _extlang_ subtags in the input as well as what behavior occurs. Additionally, > both this method and `Locale.forLanguageTag(String)` should mention their > b

Re: RFR: 8357882: Use UTF-8 encoded data in LocaleDataTest

2025-05-29 Thread Justin Lu
On Thu, 29 May 2025 17:20:12 GMT, Naoto Sato wrote: > Test refactoring stemmed from the discussion at > https://git.openjdk.org/jdk/pull/25228#discussion_r2106755160. The test is > now based on UTF-8 instead of ISO-8859-1 Test change looks good. Skimmed the data change, which also looks to be

Integrated: 8348328: Update IANA Language Subtag Registry to Version 2025-05-15

2025-05-29 Thread Justin Lu
On Wed, 28 May 2025 17:00:22 GMT, Justin Lu wrote: > Please review this PR which updates the language subtag registry to Version > 2025-05-15. > > LanguageSubtagRegistryTest.java was updated with the preferred-values: `hnm`, > `eko`, `luh`,`sjc`, `sqm`. A small change was a

Re: RFR: 8348328: Update IANA Language Subtag Registry to Version 2025-05-15

2025-05-29 Thread Justin Lu
On Wed, 28 May 2025 17:00:22 GMT, Justin Lu wrote: > Please review this PR which updates the language subtag registry to Version > 2025-05-15. > > LanguageSubtagRegistryTest.java was updated with the preferred-values: `hnm`, > `eko`, `luh`,`sjc`, `sqm`. A small change was a

RFR: 8348328: Update IANA Language Subtag Registry to Version 2025-05-15

2025-05-28 Thread Justin Lu
Please review this PR which updates the language subtag registry to Version 2025-05-15. LanguageSubtagRegistryTest.java was updated with the preferred-values: `hnm`, `eko`, `luh`,`sjc`, `sqm`. A small change was also made to the test to improve the output as well. - Commit message

Re: RFR: 8356978: Convert unicode sequences in Java source code to UTF-8

2025-05-27 Thread Justin Lu
On Mon, 26 May 2025 08:25:30 GMT, Magnus Ihse Bursie wrote: >> After we converted the source base to be fully UTF-8, we do not need to use >> unicode sequences (like \u0123) in string literals. Sometimes, that might >> still make sense, as for control characters, non-breaking space, etc. But >

Re: RFR: 8357681: Fixed the DigitList::toString method causing incorrect results during debugging

2025-05-27 Thread Justin Lu
On Sun, 18 May 2025 11:11:32 GMT, Shaojin Wen wrote: > When debugging getLong/getDouble/getDecimal of DigitList, the debugger will > call the DigitList::toString method. At this time, DigitList::toString will > modify tempBuilder, which will cause incorrect results. Change looks good to me, si

Integrated: 8357281: sun.util.Locale.LanguageTag should be immutable

2025-05-23 Thread Justin Lu
On Wed, 21 May 2025 21:19:36 GMT, Justin Lu wrote: > _sun.util.Locale.LanguageTag_ is essentially a BCP47 language tag data > carrier for Locale. The class, once created is not modified; the class should > be made immutable. Converting the class to a record accomplishes this an

Re: RFR: 8357281: sun.util.Locale.LanguageTag should be immutable [v3]

2025-05-23 Thread Justin Lu
On Thu, 22 May 2025 17:51:32 GMT, Justin Lu wrote: >> _sun.util.Locale.LanguageTag_ is essentially a BCP47 language tag data >> carrier for Locale. The class, once created is not modified; the class >> should be made immutable. Converting the class to a record accomplishes

Re: RFR: 8357281: sun.util.Locale.LanguageTag should be immutable [v2]

2025-05-22 Thread Justin Lu
On Thu, 22 May 2025 17:14:03 GMT, Chen Liang wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> review: subtag -> subtags, switch on baseLang, improve fragility of list >> field

Re: RFR: 8357281: sun.util.Locale.LanguageTag should be immutable [v3]

2025-05-22 Thread Justin Lu
> _sun.util.Locale.LanguageTag_ is essentially a BCP47 language tag data > carrier for Locale. The class, once created is not modified; the class should > be made immutable. Converting the class to a record accomplishes this and > also simplifies some of the existing code. J

Re: RFR: 8357281: sun.util.Locale.LanguageTag should be immutable [v2]

2025-05-22 Thread Justin Lu
> _sun.util.Locale.LanguageTag_ is essentially a BCP47 language tag data > carrier for Locale. The class, once created is not modified; the class should > be made immutable. Converting the class to a record accomplishes this and > also simplifies some of the existing code. J

Re: RFR: 8357281: sun.util.Locale.LanguageTag should be immutable

2025-05-22 Thread Justin Lu
On Wed, 21 May 2025 21:19:36 GMT, Justin Lu wrote: > _sun.util.Locale.LanguageTag_ is essentially a BCP47 language tag data > carrier for Locale. The class, once created is not modified; the class should > be made immutable. Converting the class to a record accomplishes this an

RFR: 8357281: sun.util.Locale.LanguageTag should be immutable

2025-05-21 Thread Justin Lu
_sun.util.Locale.LanguageTag_ is essentially a BCP47 language tag data carrier for Locale. The class, once created is not modified; the class should be made immutable. Converting the class to a record accomplishes this and also simplifies some of the existing code. - Commit message

Re: RFR: 8357275: Locale.Builder.setLanguageTag should mention conversions made on language tag [v4]

2025-05-21 Thread Justin Lu
ovided. This PR > clarifies the lack of context in the specification. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: CSR review - clarify that 3 extlang subtags is not a JDK specific condition - Changes:

Re: RFR: 8357275: Locale.Builder.setLanguageTag should mention conversions made on language tag [v2]

2025-05-20 Thread Justin Lu
On Tue, 20 May 2025 23:02:45 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> setLanguageTag should mention all conversions, not just extlang > > src/java.base/share/clas

Re: RFR: 8357275: Locale.Builder.setLanguageTag should mention conversions made on language tag [v3]

2025-05-20 Thread Justin Lu
ovided. This PR > clarifies the lack of context in the specification. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: adjust example wording - Changes: - all: https://git.openjdk.org/jdk/pull/25309/files

Re: RFR: 8357275: Locale.Builder.setLanguageTag should explicitly state extlangs are allowed [v2]

2025-05-20 Thread Justin Lu
On Tue, 20 May 2025 00:39:16 GMT, Naoto Sato wrote: >> An exception is thrown when more than three extlang subtags are provided >> (ill-formed). The new wording is when an allowed amount of extlang subtags >> are provided (not ill-formed). For example, >> >> `new Locale.Builder().setLanguageTa

Re: RFR: 8357275: Locale.Builder.setLanguageTag should explicitly state extlangs are allowed [v2]

2025-05-20 Thread Justin Lu
ovided. This PR > clarifies the lack of context in the specification. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: setLanguageTag should mention all conversions, not just extlang - Changes: - all: https://git.openj

Re: RFR: 8357275: Locale.Builder.setLanguageTag should explicitly state extlangs are allowed

2025-05-19 Thread Justin Lu
On Mon, 19 May 2025 23:41:25 GMT, Naoto Sato wrote: >> It is not clear that `Locale.Builder.setLanguageTag(String)` accepts >> _extlang_ subtags in the input as well as what behavior occurs. >> Additionally, both this method and `Locale.forLanguageTag(String)` should >> mention their behavior

RFR: 8357275: Locale.Builder.setLanguageTag should explicitly state extlangs are allowed

2025-05-19 Thread Justin Lu
It is not clear that `Locale.Builder.setLanguageTag(String)` accepts _extlang_ subtags in the input as well as what behavior occurs. Additionally, both this method and `Locale.forLanguageTag(String)` should mention their behavior when more than three _extlang_ subtags are provided. This PR clari

Re: RFR: 8357075: Remove leftover COMPAT locale data tests

2025-05-15 Thread Justin Lu
On Thu, 15 May 2025 19:31:45 GMT, Naoto Sato wrote: > Removing now-defunct COMPAT locale provider tests. Nice cleanup; lgtm test/jdk/sun/text/resources/LocaleDataTest.java line 178: > 176: public class LocaleDataTest > 177: { > 178: static final String TEXT_RESOURCES_PACKAGE > ="sun.text.

Re: RFR: 8355393: Create a Test case to have special cases coverage for currency.getInstance() [v2]

2025-05-15 Thread Justin Lu
On Sun, 11 May 2025 08:42:41 GMT, Abhishek N wrote: >> Create a Test case to have special cases coverage for currency.getInstance(). >> >> The test Validates that all currency codes and country-currency mappings in >> the input file are consistent with the Java Currency API. >> >> test results

Re: RFR: 8356980: Better handling of non-breaking space

2025-05-14 Thread Justin Lu
On Wed, 14 May 2025 16:59:23 GMT, Phil Race wrote: >> Non-breaking space characters are problematic. They look identical to the >> normal space character, but is not. For that reason, it should never be >> typed as an UTF-8 literal, but only by using unicode sequences. >> >> I have checked: >>

Integrated: 8352755: Misconceptions about j.text.DecimalFormat digits during parsing

2025-05-13 Thread Justin Lu
On Wed, 26 Mar 2025 20:31:07 GMT, Justin Lu wrote: > Please review this PR which clarifies the behavior for integer and fraction > limits in NumberFormat and implementing classes. An associated CSR is filed. > > There have been a few bugs submitted which indicate a misconception t

Re: RFR: 8355393: Create a Test case to have special cases coverage for currency.getInstance() [v2]

2025-05-12 Thread Justin Lu
On Sun, 11 May 2025 08:42:41 GMT, Abhishek N wrote: >> Create a Test case to have special cases coverage for currency.getInstance(). >> >> The test Validates that all currency codes and country-currency mappings in >> the input file are consistent with the Java Currency API. >> >> test results

Re: RFR: 8348351: Improve lazy initialization of the available currencies set [v2]

2025-05-12 Thread Justin Lu
On Thu, 8 May 2025 23:30:06 GMT, Justin Lu wrote: >> Please review this PR which stems from discussion in the PR of JDK-8347949. >> >> The set of lazily loaded Currencies is a good fit for stable values. >> `available` can now be made final as it is a SV supplier.

Integrated: 8348351: Improve lazy initialization of the available currencies set

2025-05-12 Thread Justin Lu
On Thu, 8 May 2025 22:55:34 GMT, Justin Lu wrote: > Please review this PR which stems from discussion in the PR of JDK-8347949. > > The set of lazily loaded Currencies is a good fit for stable values. > `available` can now be made final as it is a SV supplier. > > (This ch

Re: RFR: 8355393: Create a Test case to have special cases coverage for currency.getInstance()

2025-05-09 Thread Justin Lu
On Tue, 6 May 2025 07:25:36 GMT, Abhishek N wrote: > Create a Test case to have special cases coverage for currency.getInstance(). > > The test Validates that all currency codes and country-currency mappings in > the input file are consistent with the Java Currency API. > > test results: > >

Re: RFR: 8348351: Improve lazy initialization of the available currencies set [v2]

2025-05-08 Thread Justin Lu
On Thu, 8 May 2025 23:08:27 GMT, Chen Liang wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Chen's review - method name clarification > > src/java.base/share/classes/java/uti

Re: RFR: 8348351: Improve lazy initialization of the available currencies set [v2]

2025-05-08 Thread Justin Lu
ts in > `Currency::getCurrencies` to make the distinction for simple vs special > Currencies.) Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Chen's review - method name clarification - Changes: - all: htt

RFR: 8348351: Improve lazy initialization of the available currencies set

2025-05-08 Thread Justin Lu
Please review this PR which stems from discussion in the PR of JDK-8347949. The set of lazily loaded Currencies is a good fit for stable values. `available` can now be made final as it is a SV supplier. (This change also includes an unrelated minor edit to comments in `Currency::getCurrencies`

Re: RFR: 8356450: NPE in CLDRTimeZoneNameProviderImpl for tzdata downgrades after JDK-8342550

2025-05-08 Thread Justin Lu
On Thu, 8 May 2025 20:50:25 GMT, Naoto Sato wrote: > Fixing the NPE in CLDR time zone name provider. The NPE occurrs if the time > zone data was downgraded by the TZUpdater tool in which some time zones are > missing. For those missing zones, `ZoneInfo.getTimeZone()` returns null, > while `Tim

Re: RFR: 8352755: Misconceptions about j.text.DecimalFormat digits during parsing [v3]

2025-05-08 Thread Justin Lu
nd fraction parsing. > 2) The limits affecting formatting only has been the long-standing behavior > for all the subclasses of NumberFormat provided by the OpenJDK reference > implementation. Justin Lu has updated the pull request with a new target base due to a merge or a rebase. T

Integrated: 8356096: ISO 4217 Amendment 179 Update

2025-05-06 Thread Justin Lu
On Fri, 2 May 2025 20:51:31 GMT, Justin Lu wrote: > Please review this PR which implements ISO 4217 update 179. > > The _Arab Accounting Dinar_ currency is added under an _agency_, (not > _country_) entity. As a result it is not added as an entry in the country to > curr

Re: RFR: 8356096: ISO 4217 Amendment 179 Update

2025-05-06 Thread Justin Lu
On Fri, 2 May 2025 20:51:31 GMT, Justin Lu wrote: > Please review this PR which implements ISO 4217 update 179. > > The _Arab Accounting Dinar_ currency is added under an _agency_, (not > _country_) entity. As a result it is not added as an entry in the country to > curr

Integrated: 8356040: java/util/PluggableLocale/LocaleNameProviderTest.java timed out

2025-05-05 Thread Justin Lu
On Fri, 2 May 2025 15:49:03 GMT, Justin Lu wrote: > Please review this PR which reduces the amount of combinations tested by > `LocaleNameProviderTest`. > > This test was exhaustively testing over 1000x1000 `Locale` combinations which > was expensive and caused a timeout in ti

RFR: 8356096: ISO 4217 Amendment 179 Update

2025-05-02 Thread Justin Lu
Please review this PR which implements ISO 4217 update 179. The _Arab Accounting Dinar_ currency is added under an _agency_, (not _country_) entity. As a result it is not added as an entry in the country to currency mapping in `currencyData.properties`. It has a numeric code of 396, and minor u

Re: RFR: 8356040: java/util/PluggableLocale/LocaleNameProviderTest.java timed out [v2]

2025-05-02 Thread Justin Lu
r. > > Most of the diff is attributed to separating the method source from the test > itself. But notice the filtering of `Locale`s done on `availloc` and > `jreImplLoc`. Justin Lu has updated the pull request incrementally with one additional commit since the last revision:

RFR: 8356040: java/util/PluggableLocale/LocaleNameProviderTest.java timed out

2025-05-02 Thread Justin Lu
Please review this PR which reduces the amount of combinations tested by `LocaleNameProviderTest`. This test was exhaustively testing over 1000x1000 `Locale` combinations which was expensive and caused a timeout in tier 5. Narrowing down the tested locales to Japanese language ones can reduce o

Integrated: 8354343: Hardening of Currency tests for not yet defined future ISO 4217 currency

2025-04-23 Thread Justin Lu
On Mon, 21 Apr 2025 21:51:35 GMT, Justin Lu wrote: > Please review this PR which improves future currency checking for ISO 4217 > currencies. > > Checking for a currency that should not yet exist in the set of available > currencies is already done. > It should also be expli

Re: RFR: 8354343: Hardening of Currency tests for not yet defined future ISO 4217 currency [v2]

2025-04-21 Thread Justin Lu
On Mon, 21 Apr 2025 22:25:14 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> move future currencies set up under setUpTestingData() > > test/jdk/java/util/Currency

Re: RFR: 8354343: Hardening of Currency tests for not yet defined future ISO 4217 currency [v2]

2025-04-21 Thread Justin Lu
instantiated as well via the String getter. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: move future currencies set up under setUpTestingData() - Changes: - all: https://git.openjdk.org/jdk/pull/24782/files - new: ht

RFR: 8354343: Hardening of Currency tests for not yet defined future ISO 4217 currency

2025-04-21 Thread Justin Lu
Please review this PR which improves future currency checking for ISO 4217 currencies. Checking for a currency that should not yet exist in the set of available currencies is already done. It should also be explicitly checked that such a currency can not be instantiated as well via the String g

Re: RFR: 8355215: Add @spec tags to Emoji related methods

2025-04-21 Thread Justin Lu
On Mon, 21 Apr 2025 20:11:47 GMT, Naoto Sato wrote: > Adding @spec tags to Emoji related methods in the Character class. A CSR has > also been drafted. Marked as reviewed by jlu (Committer). - PR Review: https://git.openjdk.org/jdk/pull/24779#pullrequestreview-2782310737

Integrated: 8354344: Test behavior after cut-over for future ISO 4217 currency

2025-04-21 Thread Justin Lu
On Wed, 16 Apr 2025 23:06:19 GMT, Justin Lu wrote: > Please review this PR which improves the _ValidateISO4217_ Currency test by > adding testing of future currencies after the transition date. > > This is done by creating a patched version of Currency t

Re: RFR: 8354344: Test behavior after cut-over for future ISO 4217 currency

2025-04-18 Thread Justin Lu
On Thu, 17 Apr 2025 00:15:47 GMT, Naoto Sato wrote: > > As the test tracks the ISO 4217 data, manual testing of this change can be > > done by modifying the cut-over year from 2025 to 2026 for the > > `CW=ANG;2025-04-01-04-00-00;XCG` entry for both the JDK and test data. > > Would it be possib

  1   2   3   4   5   6   7   8   9   10   >