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 [v3]

2025-04-18 Thread Justin Lu
e equivalent to > `Long.MAX_VALUE`. A module patch is then applied to supply the new Currency > class files. > > The mocked time behavior is tested by using the `currency.properties` > override in a separate invocation. Justin Lu has updated the pull request incrementally with one add

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: >> 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 that replaces >> `System.currentTime

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

2025-04-17 Thread Justin Lu
On Thu, 17 Apr 2025 22:05:31 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> simple/special case in check invocation > > test/jdk/java/util/Currency/ValidateIS

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

2025-04-17 Thread Justin Lu
e equivalent to > `Long.MAX_VALUE`. A module patch is then applied to supply the new Currency > class files. > > The mocked time behavior is tested by using the `currency.properties` > override in a separate invocation. Justin Lu has updated the pull request incrementally with one add

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

2025-04-17 Thread Justin Lu
e equivalent to > `Long.MAX_VALUE`. A module patch is then applied to supply the new Currency > class files. > > The mocked time behavior is tested by using the `currency.properties` > override in a separate invocation. Justin Lu has updated the pull request incrementally with one add

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

2025-04-17 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

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

2025-04-16 Thread Justin Lu
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 that replaces `System.currentTimeMillis()` calls with a mocked value equivalent to `Long.MAX_VALUE`.

Re: RFR: 8354522: Clones of DecimalFormat cause interferences when used concurrently [v9]

2025-04-16 Thread Justin Lu
On Wed, 16 Apr 2025 17:40:39 GMT, Johannes Graham wrote: >> The `DigitList` class used in `DecimalFormat` does not reset the `data` >> array in its clone method. This can cause interference when clones are used >> concurrently. > > Johannes Graham has updated the pull request incrementally with

Re: RFR: 8354522: Clones of DecimalFormat cause interferences when used concurrently [v2]

2025-04-15 Thread Justin Lu
On Tue, 15 Apr 2025 14:43:56 GMT, Johannes Graham wrote: >> The `DigitList` class used in `DecimalFormat` does not reset the `data` >> array in its clone method. This can cause interference when clones are used >> concurrently. > > Johannes Graham has updated the pull request incrementally with

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2025-04-10 Thread Justin Lu
On Thu, 10 Apr 2025 08:44:28 GMT, Eirik Bjørsnøs wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Replace InputStreamReader with BufferedReader > > FWIW, I checked out the revision

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v6]

2025-04-09 Thread Justin Lu
On Wed, 9 Apr 2025 15:06:32 GMT, Magnus Ihse Bursie wrote: >> Justin Lu has updated the pull request with a new target base due to a merge >> or a rebase. The pull request now contains 16 commits: >> >> - Convert the merged master changes to UTF-8 >> -

Integrated: 8353713: Improve Currency.getInstance exception handling

2025-04-08 Thread Justin Lu
On Fri, 4 Apr 2025 21:25:00 GMT, Justin Lu wrote: > Please review this PR which improves some Currency > `IllegalArgumentException`s by including the input in the message. This could > be a currency code, country code, or locale. This change also includes tests > to check the mes

Integrated: 8353585: Provide ChoiceFormat#parse(String, ParsePosition) tests

2025-04-07 Thread Justin Lu
On Wed, 2 Apr 2025 22:27:14 GMT, Justin Lu wrote: > Please review this PR which provides unit tests for > `ChoiceFormat#parse(String, ParsePosition)` to check default, multi match, > and no match behavior. There were no existing relevant tests. This pull request has now been i

Re: RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate [v4]

2025-04-07 Thread Justin Lu
On Wed, 2 Apr 2025 19:46:12 GMT, Justin Lu wrote: >> Please review this PR which specifies the `ChoiceFormat#parse(String, >> ParsePosition)` method. A corresponding CSR is filed. The current >> specification is simply "Parses a Number from the input text" which d

Integrated: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate

2025-04-07 Thread Justin Lu
On Tue, 1 Apr 2025 16:45:26 GMT, Justin Lu wrote: > Please review this PR which specifies the `ChoiceFormat#parse(String, > ParsePosition)` method. A corresponding CSR is filed. The current > specification is simply "Parses a Number from the input text" which does not >

RFR: 8353585: Provide ChoiceFormat#parse(String, ParsePosition) tests

2025-04-05 Thread Justin Lu
Please review this PR which provides unit tests for `ChoiceFormat#parse(String, ParsePosition)` to check default, multi match, and no match behavior. There were no existing relevant tests. - Commit messages: - more cases + cleanup - init Changes: https://git.openjdk.org/jdk/pull/

Re: RFR: 8353118: Deprecate the use of `java.locale.useOldISOCodes` system property

2025-04-05 Thread Justin Lu
On Fri, 28 Mar 2025 20:17:30 GMT, Naoto Sato wrote: > Proposing to remove the `java.locale.useOldISOCodes` system property. This > property is for backward compatibility introduced back in JDK17 and I believe > it is now fine to remove it. In this PR targeting JDK25, it emits a > deprecate-for

Re: RFR: 8353713: Improve Currency.getInstance exception handling [v2]

2025-04-04 Thread Justin Lu
ride as well > as an invalid country code within a 3 length currency code. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Naoto's review -> use str literal since not param test - Changes: - all: https://git.ope

RFR: 8353713: Improve Currency.getInstance exception handling

2025-04-04 Thread Justin Lu
Please review this PR which improves some Currency `IllegalArgumentException`s by including the input in the message. This could be a currency code, country code, or locale. This change also includes tests to check the messages for an invalid country via the region override as well as an invalid

Re: RFR: 8353585: Provide ChoiceFormat#parse(String, ParsePosition) tests [v2]

2025-04-03 Thread Justin Lu
> Please review this PR which provides unit tests for > `ChoiceFormat#parse(String, ParsePosition)` to check default, multi match, > and no match behavior. There were no existing relevant tests. Justin Lu has updated the pull request incrementally with one additional commit since

Re: RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate [v3]

2025-04-02 Thread Justin Lu
On Wed, 2 Apr 2025 10:05:04 GMT, Alan Bateman wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address further comments > > src/java.base/share/classes/java/text/ChoiceFormat.java line

Re: RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate [v4]

2025-04-02 Thread Justin Lu
or a match, as well as no > match should be made clear. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Alan's review - Improve first sentence - Changes: - all: https://git.openjdk.org/jdk/pull/24361/files - ne

Re: RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate [v2]

2025-04-01 Thread Justin Lu
On Tue, 1 Apr 2025 19:36:04 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> reflect Naoto's review > > src/java.base/share/classes/java/text/ChoiceFormat.java line 5

Re: RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate [v3]

2025-04-01 Thread Justin Lu
or a match, as well as no > match should be made clear. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Address further comments - Changes: - all: https://git.openjdk.org/jdk/pull/24361/files - new: https://git.openjdk

Re: RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate [v2]

2025-04-01 Thread Justin Lu
On Tue, 1 Apr 2025 18:17:12 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> reflect Naoto's review > > src/java.base/share/classes/java/text/ChoiceFormat.java

Re: RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate [v2]

2025-04-01 Thread Justin Lu
or a match, as well as no > match should be made clear. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: reflect Naoto's review - Changes: - all: https://git.openjdk.org/jdk/pull/24361/files - new: https://git.op

RFR: 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate

2025-04-01 Thread Justin Lu
Please review this PR which specifies the `ChoiceFormat#parse(String, ParsePosition)` method. A corresponding CSR is filed. The current specification is simply "Parses a Number from the input text" which does not indicate how the value is returned. The criteria for a match, as well as no match s

Integrated: 5061061: SimpleDateFormat: unspecified behavior for reserved pattern letter

2025-03-27 Thread Justin Lu
On Mon, 24 Mar 2025 21:21:20 GMT, Justin Lu wrote: > Please review this specification update for `SimpleDateFormat` which > explicitly specifies the behavior for 'reserved' pattern letters. This is a > specification update and has the potential low risk of making an &

Re: RFR: 5061061: SimpleDateFormat: unspecified behavior for reserved pattern letter [v2]

2025-03-27 Thread Justin Lu
On Mon, 24 Mar 2025 23:13:48 GMT, Justin Lu wrote: >> Please review this specification update for `SimpleDateFormat` which >> explicitly specifies the behavior for 'reserved' pattern letters. This is a >> specification update and has the potential low risk of maki

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

2025-03-26 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 incrementally with one additional commit since the last

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

2025-03-26 Thread Justin Lu
On Wed, 26 Mar 2025 22:35:25 GMT, Naoto Sato wrote: >> That commentary is only in this method because of the non-obvious behavior >> for the maximum integer digits. (The pattern does not change the >> `maximumIntegerDigits`). Since not all users may read that section in the >> class descriptio

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

2025-03-26 Thread Justin Lu
On Wed, 26 Mar 2025 21:41:02 GMT, Naoto Sato 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 that >> t

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

2025-03-26 Thread Justin Lu
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 that these limits impact parsing. The actual behavior is that these limits

Re: RFR: 8346948: Update CLDR to Version 47.0 [v2]

2025-03-25 Thread Justin Lu
On Wed, 19 Mar 2025 17:48:20 GMT, Naoto Sato wrote: >> Upgrading the CLDR to version 47.0. A corresponding CSR has also been >> drafted. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Copyright year/bugid update Spec chang

Re: RFR: 5061061: SimpleDateFormat: unspecified behavior for reserved pattern letter [v2]

2025-03-24 Thread Justin Lu
> Please review this specification update for `SimpleDateFormat` which > explicitly specifies the behavior for 'reserved' pattern letters. This is a > specification update and has the potential low risk of making an > implementation non-compliant. Thus, an associated CS

RFR: 5061061: SimpleDateFormat: unspecified behavior for reserved pattern letter

2025-03-24 Thread Justin Lu
Please review this specification update for `SimpleDateFormat` which explicitly specifies the behavior for 'reserved' pattern letters. This is a specification update and has the potential low risk of making an implementation non-compliant. Thus, an associated CSR is filed. - Commit

Re: RFR: 8352628: Refine Grapheme test

2025-03-21 Thread Justin Lu
On Fri, 21 Mar 2025 20:17:31 GMT, Naoto Sato wrote: > Refining regex tests for Grapheme break so that every test case will run even > with some failing ones. Looks good - Marked as reviewed by jlu (Committer). PR Review: https://git.openjdk.org/jdk/pull/24168#pullrequestreview-27

Re: RFR: 8352275: Clean up dead code in jpackage revealed with improved negative test coverage

2025-03-18 Thread Justin Lu
On Tue, 18 Mar 2025 18:37:17 GMT, Alexey Semenyuk wrote: >> Follow up code cleanup for https://github.com/openjdk/jdk/pull/23936 PR. >> >> Details on cleanup actions are given in commit descriptions. > > @justin-curtis-lu PTAL. Is it a valid assumption that removing property keys > from the mai

Integrated: 8351074: Disallow null prefix and suffix in DecimalFormat

2025-03-05 Thread Justin Lu
On Tue, 4 Mar 2025 01:37:57 GMT, Justin Lu wrote: > Please review this PR and associated CSR which disallows passing null to 4 > `DecimalFormat` prefix/suffix setter methods. > > Currently these setters do not check the input String for null. When the > prefix/suffix is

Re: RFR: 8351074: Disallow null prefix and suffix in DecimalFormat [v3]

2025-03-04 Thread Justin Lu
gt; non-functional as it will throw NPE for most operations. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Make non-null apparent in param tag as well - Changes: - all: https://git.openjdk.org/jdk/pull/23880/fi

Integrated: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods

2025-03-04 Thread Justin Lu
On Wed, 26 Feb 2025 22:18:17 GMT, Justin Lu wrote: > Please review this PR which clarifies some behavior regarding NumberFormat > grouping specifically in the grouping related methods. > > Please see the corresponding CSR for further detail. Note that an alternative > would be

Re: RFR: 8351074: Disallow null prefix and suffix in DecimalFormat [v2]

2025-03-03 Thread Justin Lu
gt; non-functional as it will throw NPE for most operations. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: correct bug ID for test - Changes: - all: https://git.openjdk.org/jdk/pull/23880/files - new: https://git.op

RFR: 8351074: Disallow null prefix and suffix in DecimalFormat

2025-03-03 Thread Justin Lu
Please review this PR and associated CSR which disallows passing null to 4 `DecimalFormat` prefix/suffix setter methods. Currently these setters do not check the input String for null. When the prefix/suffix is null, any such DecimalFormat instances are effectively non-functional as it will thr

Integrated: 8350646: Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException

2025-02-28 Thread Justin Lu
On Tue, 25 Feb 2025 23:58:21 GMT, Justin Lu wrote: > Please review this PR which prevents an `AIOOBE` from leaking out when > `java.util.Calendar.Builder` is used to build a Japanese calendar with an era > value too large. > > Note that we don't check under `BEFORE_MEIJ

Re: RFR: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods [v2]

2025-02-27 Thread Justin Lu
On Thu, 27 Feb 2025 19:39:53 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Naoto review - include strict parsing example. Also remove 'might' wording > &g

Re: RFR: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods [v3]

2025-02-27 Thread Justin Lu
ng NumberFormat > subclasses to define this behavior how they want. IMO, I would expect > `setGroupingUsed(boolean)` to affect both; a subclass could define > `(is|set)(Parsing|Formatting)GroupingUsed` if need be, thus the proposed > solution. Justin Lu has updated the pull req

Re: RFR: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods [v2]

2025-02-27 Thread Justin Lu
On Thu, 27 Feb 2025 16:37:59 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Naoto review - include strict parsing example. Also remove 'might' wording > &g

Re: RFR: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods [v2]

2025-02-27 Thread Justin Lu
ng NumberFormat > subclasses to define this behavior how they want. IMO, I would expect > `setGroupingUsed(boolean)` to affect both; a subclass could define > `(is|set)(Parsing|Formatting)GroupingUsed` if need be, thus the proposed > solution. Justin Lu has updated the pull req

RFR: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods

2025-02-26 Thread Justin Lu
Please review this PR which clarifies some behavior regarding NumberFormat grouping specifically in the grouping related methods. Please see the corresponding CSR for further detail. Note that an alternative would be to specify this at the DecimalFormat level, allowing NumberFormat subclasses t

Re: RFR: 8350646: Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException [v3]

2025-02-26 Thread Justin Lu
negative values during normalization. See > `JapaneseImperialCalendar` L2018: `date.setEra(era > 0 ? eras[era] : null);`. > > We also check against `eras.length` over `REIWA`/5 due to the possibility of > additional eras via the property override or future eras in general.

Re: RFR: 8350646: Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException [v2]

2025-02-26 Thread Justin Lu
On Wed, 26 Feb 2025 19:23:06 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Naoto - correct comment regarding REIWA, add test case for IAE check w/ >> additional era

Re: RFR: 8350646: Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException [v2]

2025-02-26 Thread Justin Lu
On Wed, 26 Feb 2025 17:20:47 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Naoto - correct comment regarding REIWA, add test case for IAE check w/ >> additional era

Re: RFR: 8350646: Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException [v2]

2025-02-26 Thread Justin Lu
negative values during normalization. See > `JapaneseImperialCalendar` L2018: `date.setEra(era > 0 ? eras[era] : null);`. > > We also check against `eras.length` over `REIWA`/5 due to the possibility of > additional eras via the property override or future eras in general.

RFR: 8350646: Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException

2025-02-25 Thread Justin Lu
Please review this PR which prevents an `AIOOBE` from leaking out when `java.util.Calendar.Builder` is used to build a Japanese calendar with an era value too large. Note that we don't check under `BEFORE_MEIJI`/0 as historically Japanese calendar ignores negative values during normalization. S

Integrated: 8349883: Locale.LanguageRange.parse("-") throws ArrayIndexOutOfBoundsException

2025-02-13 Thread Justin Lu
On Wed, 12 Feb 2025 19:34:19 GMT, Justin Lu wrote: > Please review this PR which prevents a (non-specified) `AIOOBE` from leaking > out of the range accepting endpoints in `Locale.LanguageRange`. > > In the reported error case, the invalid range is a lone "-" which is `s

Re: RFR: 8349873: StackOverflowError after JDK-8342550 if -Duser.timezone= is set to a deprecated zone id [v2]

2025-02-12 Thread Justin Lu
On Wed, 12 Feb 2025 23:07:26 GMT, Naoto Sato wrote: >> Fixing the regression caused by the JDK-8342550 fix. Since the logging >> facility depends on TimeZone class, it should not use the logging facility. >> Replacing the logging with simple System.err.printf() will fix the issue. > > Naoto Sat

Re: RFR: 8349873: StackOverflowError after JDK-8342550 if -Duser.timezone= is set to a deprecated zone id

2025-02-12 Thread Justin Lu
On Wed, 12 Feb 2025 19:35:18 GMT, Naoto Sato wrote: > Fixing the regression caused by the JDK-8342550 fix. Since the logging > facility depends on TimeZone class, it should not use the logging facility. > Replacing the logging with simple System.err.printf() will fix the issue. lgtm test/jdk/

Re: RFR: 8349883: Locale.LanguageRange.parse("-") throws ArrayIndexOutOfBoundsException [v2]

2025-02-12 Thread Justin Lu
On Wed, 12 Feb 2025 21:40:48 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Naoto's review - Include test in LanguageRangeTest instead. Additionally, >> b

Re: RFR: 8349883: Locale.LanguageRange.parse("-") throws ArrayIndexOutOfBoundsException [v2]

2025-02-12 Thread Justin Lu
range ends with "-" first, avoids > indexing the empty array. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Naoto's review - Include test in LanguageRangeTest instead. Additionally, bundle existing LRT

RFR: 8349883: Locale.LanguageRange.parse("-") throws ArrayIndexOutOfBoundsException

2025-02-12 Thread Justin Lu
Please review this PR which prevents a (non-specified) `AIOOBE` from leaking out of the range accepting endpoints in `Locale.LanguageRange`. In the reported error case, the invalid range is a lone "-" which is `split` into an empty array. Checking if the range ends with "-" first, avoids indexin

Re: RFR: 8349254: Disable "best-fit" mapping on Windows environment variables [v2]

2025-02-07 Thread Justin Lu
On Fri, 7 Feb 2025 20:11:06 GMT, Naoto Sato wrote: >> src/java.base/share/native/libjli/args.c line 611: >> >>> 609: LPWSTR wcVarName = JLI_MemAlloc(wcCount * sizeof(wchar_t)); >>> 610: if (MultiByteToWideChar(CP_ACP, 0, var_name, -1, wcVarName, >>> wcCount) != 0) { >>> 611:

Re: RFR: 8349254: Disable "best-fit" mapping on Windows environment variables [v3]

2025-02-07 Thread Justin Lu
On Fri, 7 Feb 2025 20:05:49 GMT, Naoto Sato wrote: >> This is a follow-on fix to >> [JDK-8337506](https://bugs.openjdk.org/browse/JDK-8337506). The Java >> launcher can take arguments from "JDK_JAVA_OPTIONS" environment variable, so >> the same processing is needed. Also, obsolete code for Win

Re: RFR: 8349254: Disable "best-fit" mapping on Windows environment variables [v2]

2025-02-07 Thread Justin Lu
On Fri, 7 Feb 2025 18:32:26 GMT, Naoto Sato wrote: >> This is a follow-on fix to >> [JDK-8337506](https://bugs.openjdk.org/browse/JDK-8337506). The Java >> launcher can take arguments from "JDK_JAVA_OPTIONS" environment variable, so >> the same processing is needed. Also, obsolete code for Win

Integrated: 8349493: Replace sun.util.locale.ParseStatus usage with java.text.ParsePosition

2025-02-07 Thread Justin Lu
On Wed, 5 Feb 2025 21:25:56 GMT, Justin Lu wrote: > Please review this PR which removes _sun.util.locale.ParseStatus_ which is a > Locale helper class used for parsing language tags. > > Such usages should be replaced by _java.text.ParsePosition_ which has almost > 1 to 1 beha

Re: RFR: 8349493: Replace sun.util.locale.ParseStatus usage with java.text.ParsePosition

2025-02-05 Thread Justin Lu
On Wed, 5 Feb 2025 22:51:45 GMT, Naoto Sato wrote: >> Please review this PR which removes _sun.util.locale.ParseStatus_ which is >> a Locale helper class used for parsing language tags. >> >> Such usages should be replaced by _java.text.ParsePosition_ which has almost >> 1 to 1 behavior. Note

RFR: 8349493: Replace sun.util.locale.ParseStatus usage with java.text.ParsePosition

2025-02-05 Thread Justin Lu
Please review this PR which removes _sun.util.locale.ParseStatus_ which is a Locale helper class used for parsing language tags. Such usages should be replaced by _java.text.ParsePosition_ which has almost 1 to 1 behavior. Note that this cleanup changes the exception message in `Locale.caseFol

Integrated: 8349000: Performance improvement for Currency.isPastCutoverDate(String)

2025-02-04 Thread Justin Lu
On Thu, 30 Jan 2025 19:27:30 GMT, Justin Lu wrote: > Please review this PR which improves the performance of cut-over date > checking when the user supplies a properties override via the > `java.util.currency.data` sys prop. Replacing the `SimpleDateFormat` with a > _java.time_

Re: RFR: 8349000: Performance improvement for Currency.isPastCutoverDate(String) [v3]

2025-02-04 Thread Justin Lu
On Mon, 3 Feb 2025 19:01:50 GMT, Justin Lu wrote: >> Please review this PR which improves the performance of cut-over date >> checking when the user supplies a properties override via the >> `java.util.currency.data` sys prop. Replacing the `SimpleDateFormat` with a >>

Re: RFR: 8349200: [JMH] time.format.ZonedDateTimeFormatterBenchmark fails

2025-02-03 Thread Justin Lu
On Mon, 3 Feb 2025 07:49:21 GMT, SendaoYan wrote: > Hi all, > The JMH test > "org.openjdk.bench.java.time.format.ZonedDateTimeFormatterBenchmark.parse" > fails "java.time.format.DateTimeParseException: Text '2015:03:10:12:13:ECT' > could not be parsed at index 17". > The `ECT` standard for "Am

Re: RFR: 8349000: Performance improvement for Currency.isPastCutoverDate(String) [v2]

2025-02-03 Thread Justin Lu
On Mon, 3 Feb 2025 18:05:51 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/util/Currency.java line 1182: >> >>> 1180: private static boolean isPastCutoverDate(String cutOver) { >>> 1181: return System.currentTimeMillis() > >>> 1182: LocalDateTi

Re: RFR: 8349000: Performance improvement for Currency.isPastCutoverDate(String) [v3]

2025-02-03 Thread Justin Lu
> faster but not as concise. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: reflect review - Changes: - all: https://git.openjdk.org/jdk/pull/23374/files - new: https://git.openjdk.org/jdk/pull/23374/files/a71a31bc..f80

Re: RFR: 8349000: Performance improvement for Currency.isPastCutoverDate(String) [v2]

2025-01-31 Thread Justin Lu
On Fri, 31 Jan 2025 18:43:58 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> generalize format comment > > src/java.base/share/classes/java/util/Currency.java line 1179:

Re: RFR: 8349000: Performance improvement for Currency.isPastCutoverDate(String) [v2]

2025-01-31 Thread Justin Lu
> faster but not as concise. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: generalize format comment - Changes: - all: https://git.openjdk.org/jdk/pull/23374/files - new: https://git.openjdk.org/jdk/pull/23374/files/0f1c27

Re: RFR: 8349006: File.getCanonicalPath should remove "(on UNIX platforms)" from its specification [v3]

2025-01-30 Thread Justin Lu
On Thu, 30 Jan 2025 18:40:28 GMT, Brian Burkhalter wrote: >> The change made for >> [JDK-8003887](https://bugs.openjdk.org/browse/JDK-8003887) updated >> `File.getCanonicalPath` to resolve symbolic links on Windows, but its >> specification was not modified to reflect this. Here it is proposed

RFR: 8349000: Performance improvement for Currency.isPastCutoverDate(String)

2025-01-30 Thread Justin Lu
Please review this PR which improves the performance of cut-over date checking when the user supplies a properties override via the `java.util.currency.data` sys prop. Replacing the `SimpleDateFormat` with a _java.time_ alternative has better performance. It should be noted that this method is o

Integrated: 8347949: Currency method to stream available Currencies

2025-01-30 Thread Justin Lu
On Thu, 16 Jan 2025 22:21:26 GMT, Justin Lu wrote: > Please review this PR and CSR which adds a method to _java.util.Currency_ > which returns a stream of the available Currencies. > > The motivation can be found in the CSR. This pull request has now been integrated. Changes

Re: RFR: 8347949: Currency method to stream available Currencies [v8]

2025-01-30 Thread Justin Lu
On Wed, 29 Jan 2025 18:35:31 GMT, Justin Lu wrote: >> Please review this PR and CSR which adds a method to _java.util.Currency_ >> which returns a stream of the available Currencies. >> >> The motivation can be found in the CSR. > > Justin Lu has updated the pull

Re: RFR: 8349006: File.getCanonicalPath should remove "(on UNIX platforms)" from its specification [v2]

2025-01-30 Thread Justin Lu
On Thu, 30 Jan 2025 15:58:37 GMT, Brian Burkhalter wrote: >> The change made for >> [JDK-8003887](https://bugs.openjdk.org/browse/JDK-8003887) updated >> `File.getCanonicalPath` to resolve symbolic links on Windows, but its >> specification was not modified to reflect this. Here it is proposed

Re: RFR: 8301875: java.util.TimeZone.getSystemTimeZoneID uses C library default file mode

2025-01-29 Thread Justin Lu
On Wed, 29 Jan 2025 20:42:30 GMT, Naoto Sato wrote: > Force opening "tzmappings" file in text mode. Confirmed the fix with customer > provided test case. Also replaced the file open function with the safer one. Fix looks correct to force "text mode". Switch to `fopen_s` also looks good. --

Re: RFR: 8347949: Currency method to stream available Currencies [v8]

2025-01-29 Thread Justin Lu
> Please review this PR and CSR which adds a method to _java.util.Currency_ > which returns a stream of the available Currencies. > > The motivation can be found in the CSR. Justin Lu has updated the pull request with a new target base due to a merge or a rebase. The pull request

Integrated: 8347955: TimeZone methods to stream the available timezone IDs

2025-01-28 Thread Justin Lu
On Thu, 23 Jan 2025 02:49:49 GMT, Justin Lu wrote: > Please review this PR and CSR which add a pair of methods to > _java.util.TimeZone_ that return a stream of the available IDs. See the CSR > for the motivation. > > A number of existing tests are modified to use the n

Re: RFR: 8347955: TimeZone methods to stream the available timezone IDs [v4]

2025-01-28 Thread Justin Lu
On Fri, 24 Jan 2025 18:00:06 GMT, Justin Lu wrote: >> Please review this PR and CSR which add a pair of methods to >> _java.util.TimeZone_ that return a stream of the available IDs. See the CSR >> for the motivation. >> >> A number of existing tests are modifi

Integrated: 8348205: Improve cutover time selection when building available currencies set

2025-01-28 Thread Justin Lu
On Fri, 24 Jan 2025 23:56:46 GMT, Justin Lu wrote: > Please review this PR which improves the time measurement for cut-over time > comparisons when building the available set of currencies in > _java.util.Currency._ Currently, a new time was measured for each special > case curre

Re: RFR: 8348205: Improve cutover time selection when building available currencies set [v2]

2025-01-28 Thread Justin Lu
On Mon, 27 Jan 2025 18:30:39 GMT, Justin Lu wrote: >> Please review this PR which improves the time measurement for cut-over time >> comparisons when building the available set of currencies in >> _java.util.Currency._ Currently, a new time was measured for each special >

Re: RFR: 8348205: Improve cutover time selection when building available currencies set [v2]

2025-01-27 Thread Justin Lu
On Mon, 27 Jan 2025 18:03:48 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> reflect review > > src/java.base/share/classes/java/util/Currency.java line 447: &

Re: RFR: 8348205: Improve cutover time selection when building available currencies set [v2]

2025-01-27 Thread Justin Lu
time for all such > cases Justin Lu has updated the pull request incrementally with one additional commit since the last revision: reflect review - Changes: - all: https://git.openjdk.org/jdk/pull/23309/files - new: https://git.openjdk.org/jdk/pull/23309/files/9305f954..c4

[jdk24] Integrated: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-27 Thread Justin Lu
On Fri, 24 Jan 2025 21:51:39 GMT, Justin Lu wrote: > Please review this PR which is a backport of > [dec93675](https://github.com/openjdk/jdk/commit/dec93675ab3e4c271b14a254df75dc838f1346ea) > that updates the l10n translations for jdk24. > > The commit being backported was aut

Re: [jdk24] RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-27 Thread Justin Lu
On Fri, 24 Jan 2025 21:51:39 GMT, Justin Lu wrote: > Please review this PR which is a backport of > [dec93675](https://github.com/openjdk/jdk/commit/dec93675ab3e4c271b14a254df75dc838f1346ea) > that updates the l10n translations for jdk24. > > The commit being backported was aut

RFR: 8348205: Improve cutover time selection when building available currencies set

2025-01-24 Thread Justin Lu
Please review this PR which improves the time measurement for cut-over time comparisons when building the available set of currencies in _java.util.Currency._ Currently, a new time was measured for each special case currency. This PR updates the behavior to use the same time for all such cases

[jdk24] RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-24 Thread Justin Lu
Please review this PR which is a backport of [dec93675](https://github.com/openjdk/jdk/commit/dec93675ab3e4c271b14a254df75dc838f1346ea) that updates the l10n translations for jdk24. The commit being backported was authored by Justin Lu on 24 Jan 2025 and was reviewed by Severin Gehwolf, Damon

Integrated: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-24 Thread Justin Lu
On Fri, 17 Jan 2025 22:29:15 GMT, Justin Lu wrote: > Please review this PR which contains the l10n translations for between RDP1 > and RDP2 for the JDK24 stabilization branch. > > Note that these translations are only associated with changes made to the > stabilization branc

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update [v2]

2025-01-24 Thread Justin Lu
On Wed, 22 Jan 2025 18:39:47 GMT, Justin Lu wrote: >> Please review this PR which contains the l10n translations for between RDP1 >> and RDP2 for the JDK24 stabilization branch. >> >> Note that these translations are only associated with changes made to the >>

Re: RFR: 8347955: TimeZone methods to stream the available timezone IDs [v4]

2025-01-24 Thread Justin Lu
DsTest.java_ which tests the new > methods. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: new methods do not need to be synchronized - Changes: - all: https://git.openjdk.org/jdk/pull/23251/files - new: https://git

Re: RFR: 8291027: Some of TimeZone methods marked 'synchronized' unnecessarily [v2]

2025-01-24 Thread Justin Lu
On Thu, 16 Jan 2025 13:02:34 GMT, Andrey Turbanov wrote: >> There are 3 methods in `java.util.TimeZone` which are `public static` and >> marked as `synchronized`: >> 1. getTimeZone(String) >> 2. getAvailableIDs(int) >> 3. getAvailableIDs() >> >> This means it is a bottle neck for the whole VM.

  1   2   3   4   5   6   7   8   9   10   >