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

2025-08-04 Thread Roger Riggs
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

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

2025-08-04 Thread Roger Riggs
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

Re: RFR: 8364007: Add overload without arguments to codePointCount in String etc.

2025-07-24 Thread Roger Riggs
On Thu, 24 Jul 2025 14:50:07 GMT, Tatsunori Uchino wrote: > Adds `codePointCount()` overloads to `String`, `Character`, > `(Abstract)StringBuilder`, and `StringBuffer` to make it possible to > conveniently retrieve the length of a string as code points without extra > boundary checks. > > >

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

2025-07-17 Thread Roger Riggs
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: 8294226: Document missing UnsupportedTemporalTypeException

2025-06-16 Thread Roger Riggs
On Mon, 16 Jun 2025 16:36:43 GMT, Gautham Krishnan wrote: > Some methods in the java.time.chrono interfaces—ChronoLocalDate, > ChronoLocalDateTime, and ChronoZonedDateTime—override methods from the > java.time.temporal.Temporal interface that are documented to throw > UnsupportedTemporalTypeE

Re: RFR: 8334742: Change java.time month/day field types to 'byte' [v2]

2025-05-27 Thread Roger Riggs
On Wed, 30 Apr 2025 20:38:59 GMT, Gautham Krishnan wrote: >> In the following classes, month and day values are stored in fields of type >> 'int' or 'short'. The range of allowed values is small enough that the type >> can be 'byte' instead. >> >> java.time.YearMonth >> java.time.MonthDay >> j

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

2025-05-27 Thread Roger Riggs
On Tue, 27 May 2025 19:44:55 GMT, Shaojin Wen wrote: > To test this concurrency problem, we need to build a concurrent competition > test, which is not a simple task, so I did not add it. The label `noreg-hard` would be appropriate to indicate a test was not created due to difficulty. That lab

Re: RFR: 8356021: Use Double::hashCode in java.util.Locale::hashCode

2025-05-01 Thread Roger Riggs
On Wed, 30 Apr 2025 18:01:08 GMT, Shaojin Wen wrote: > Similar to #24959, java.util.Locale.hashCode can also make the same > improvement. > > Replace manual bitwise operations in hashCode implementations of > java.util.Locale with Double::hashCode. lgltm - Marked as reviewed by

Re: RFR: 8334742: Change java.time month/day field types to 'byte' [v2]

2025-04-30 Thread Roger Riggs
On Wed, 30 Apr 2025 20:38:59 GMT, Gautham Krishnan wrote: >> In the following classes, month and day values are stored in fields of type >> 'int' or 'short'. The range of allowed values is small enough that the type >> can be 'byte' instead. >> >> java.time.YearMonth >> java.time.MonthDay >> j

Re: RFR: 8334742: Change java.time month/day field types to 'byte' [v2]

2025-04-30 Thread Roger Riggs
On Wed, 30 Apr 2025 20:38:59 GMT, Gautham Krishnan wrote: >> In the following classes, month and day values are stored in fields of type >> 'int' or 'short'. The range of allowed values is small enough that the type >> can be 'byte' instead. >> >> java.time.YearMonth >> java.time.MonthDay >> j

Re: RFR: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread Roger Riggs
On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici wrote: > Replace manual bitwise operations in `hashCode` implementations of > `java.time` with `Long::hashCode`. lgtm - Marked as reviewed by rriggs (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/24959#pullrequestreview-280

Integrated: 8354335: No longer deprecate wrapper class constructors for removal

2025-04-28 Thread Roger Riggs
On Thu, 10 Apr 2025 22:05:04 GMT, Roger Riggs wrote: > Remove forRemoval = true from @Deprecated annotation of Boolean, Byte, > Character, Double, Float, Integer, Long, Short. > And add `SuppressWarnings("deprecation") `where needed; and remove > `SuppressWarnings(

RFR: 8354335: No longer deprecate wrapper class constructors for removal

2025-04-10 Thread Roger Riggs
Remove forRemoval = true from @Deprecated annotation of Boolean, Byte, Character, Double, Float, Integer, Long, Short. And add `SuppressWarnings("deprecation") `where needed; and remove `SuppressWarnings("removal")` - Commit messages: - 8354335: No longer deprecate wrapper class co

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

2025-03-25 Thread Roger Riggs
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 making an >> implementation non-co

Re: RFR: 8351017: ChronoUnit.MONTHS.between() not giving correct result when date is in February

2025-03-07 Thread Roger Riggs
On Thu, 6 Mar 2025 23:36:29 GMT, Naoto Sato wrote: > Clarifying the explanation for `TemporalUnit.between()`. There is already an > example for the `HOURS` case where the minutes are not enough to make a full > hour. Explaining how smaller units contribute to determining the whole > number, al

Re: RFR: 8337279: Optimize format instant [v13]

2025-01-30 Thread Roger Riggs
On Thu, 30 Jan 2025 14:20:36 GMT, Shaojin Wen wrote: >> By removing the redundant code logic in >> DateTimeFormatterBuilder$InstantPrinterParser#formatTo, the codeSize can be >> reduced and the performance can be improved. > > Shaojin Wen has updated the pull request incrementally with one addi

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

2025-01-28 Thread Roger Riggs
On Thu, 23 Jan 2025 02:50:46 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 request with a new target base

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

2025-01-27 Thread Roger Riggs
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 modified to use the new methods. See >>

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

2025-01-27 Thread Roger Riggs
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 >> case currency. This

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

2025-01-22 Thread Roger Riggs
On Tue, 21 Jan 2025 18:44:39 GMT, Justin Lu wrote: >> src/java.base/share/classes/java/util/Currency.java line 469: >> >>> 467: >>> 468: // Initialize the set of available currencies if needed >>> 469: private static synchronized void initAvailableCurrencies() { >> >> Should we make `a

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

2025-01-17 Thread Roger Riggs
On Fri, 17 Jan 2025 23:10:54 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 request incrementally with one

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

2025-01-17 Thread Roger Riggs
On Fri, 17 Jan 2025 22:39:14 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 request incrementally with one

Re: RFR: 8166983: Remove old/legacy unused tzdata files

2025-01-07 Thread Roger Riggs
On Tue, 7 Jan 2025 18:27:31 GMT, Naoto Sato wrote: > Long overdue cleanup, especially the old `javazic` tool, which has been > maintenance burden for some time. Marked as reviewed by rriggs (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/22955#pullrequestreview-253530375

Re: RFR: 8345668: ZoneOffset.ofTotalSeconds performance regression [v4]

2025-01-02 Thread Roger Riggs
> - Fixed compile error > - Update src/java.base/share/classes/java/time/ZoneOffset.java > >Co-authored-by: Roger Riggs > - initial commit Looks good to me. - Marked as reviewed by rriggs (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/22854#pullrequestreview-2528032253

Re: RFR: 8175709: DateTimeFormatterBuilder.appendZoneId() has misleading JavaDoc [v2]

2024-12-20 Thread Roger Riggs
On Fri, 20 Dec 2024 18:12:17 GMT, Naoto Sato wrote: >> Clarifying the documentation of `DateTimeFormatterBuilder.appendZoneId()` >> and similar methods to align the description with the behavior, in which >> `ZoneOffset` is only parsed from the formatter for offset texts without any >> prefixe

Re: RFR: 8345668: ZoneOffset.ofTotalSeconds performance regression

2024-12-20 Thread Roger Riggs
On Fri, 20 Dec 2024 19:55:06 GMT, Naoto Sato wrote: > The change made in [JDK-8288723](https://bugs.openjdk.org/browse/JDK-8288723) > seems innocuous, but it caused this performance regression. Partially > reverting the change (ones that involve `computeIfAbsent()`) to the original. > Provided

Re: RFR: 8175709: DateTimeFormatterBuilder.appendZoneId() has misleading JavaDoc

2024-12-20 Thread Roger Riggs
On Thu, 19 Dec 2024 22:12:52 GMT, Naoto Sato wrote: > Clarifying the documentation of `DateTimeFormatterBuilder.appendZoneId()` and > similar methods to align the description with the behavior, in which > `ZoneOffset` is only parsed from the formatter for offset texts without any > prefixes. C

[jdk24] Integrated: 8345818: Fix SM cleanup of parsing of System property resource.bundle.debug

2024-12-12 Thread Roger Riggs
On Tue, 10 Dec 2024 15:31:08 GMT, Roger Riggs wrote: > Backport this trivial fix to parsing of the system property > "resource.bundle.debug" to jdk24. This pull request has now been integrated. Changeset: 3b53ed7f Author:Roger Riggs URL: https://git.openjd

Re: [jdk24] RFR: 8345818: Fix SM cleanup of parsing of System property resource.bundle.debug

2024-12-12 Thread Roger Riggs
On Tue, 10 Dec 2024 15:31:08 GMT, Roger Riggs wrote: > Backport this trivial fix to parsing of the system property > "resource.bundle.debug" to jdk24. @LanceAndersen Please review - PR Comment: https://git.openjdk.org/jdk/pull/22664#issuecomment-2539329603

[jdk24] RFR: 8345818: Fix SM cleanup of parsing of System property resource.bundle.debug

2024-12-10 Thread Roger Riggs
Backport this trivial fix to parsing of the system property "resource.bundle.debug" to jdk24. - Commit messages: - Backport 4f855d1342d55aeee93b7d0c5796fbfd4994c856 Changes: https://git.openjdk.org/jdk/pull/22664/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22664&range=

Integrated: 8345818: Fix SM cleanup of parsing of System property resource.bundle.debug

2024-12-10 Thread Roger Riggs
On Mon, 9 Dec 2024 17:22:14 GMT, Roger Riggs wrote: > Replace broken getProperty with Boolean.getBoolean. > > Manual testing confirms trace messages are enabled with > `-Dresource.bundle.debug=true` This pull request has now been integrated. Changeset: 4f855d13 Author: Roge

Re: RFR: 8345799: Update copyright year to 2024 for core-libs in files where it was missed [v2]

2024-12-09 Thread Roger Riggs
On Mon, 9 Dec 2024 15:45:42 GMT, Magnus Ihse Bursie wrote: >> That git query isn't correct for all the files in the repo. In particular, >> the copyrights on third party files are NOT updated uniformly when new >> versions are applied. In particular, XML files are NOT updated. > >> That git que

RFR: 8345818: Fix SM cleanup of parsing of System property resource.bundle debug

2024-12-09 Thread Roger Riggs
Replace broken getProperty with Boolean.getBoolean. Manual testing confirms trace messages are enabled with `-Dresource.bundle.debug=true` - Commit messages: - 8345818: Fix SM cleanup of parsing of System property resource.bundle.debug Changes: https://git.openjdk.org/jdk/pull/226

Re: RFR: 8344252: SM cleanup in java.util classes [v3]

2024-12-09 Thread Roger Riggs
On Mon, 9 Dec 2024 08:58:19 GMT, Eirik Bjørsnøs wrote: >>> Seems like we could simply use >>> `Boolean.getBoolean("resource.bundle.debug")` instead? >> >> Naoto may know the history on this property. It may have been introduced for >> debugging when working on the RB implementation or maybe it

Re: RFR: 8345799: Update copyright year to 2024 for core-libs in files where it was missed [v2]

2024-12-09 Thread Roger Riggs
On Mon, 9 Dec 2024 13:03:06 GMT, Magnus Ihse Bursie wrote: >> Some files have been modified in 2024, but the copyright year has not been >> properly updated. This should be fixed. >> >> I have located these modified files using: >> >> git log --since="Jan 1" --name-only --pretty=format: | sor

Integrated: 8345325: SM cleanup of GetPropertyAction in java.base

2024-12-03 Thread Roger Riggs
On Mon, 2 Dec 2024 20:12:39 GMT, Roger Riggs wrote: > Remove sun/security/action/GetPropertyAction.java and all uses. > > Dependent on PR#22418 This pull request has now been integrated. Changeset: fcf185c8 Author: Roger Riggs URL: https://git.openjdk.org/j

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v4]

2024-12-03 Thread Roger Riggs
On Tue, 3 Dec 2024 14:53:41 GMT, Eirik Bjørsnøs wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove an obsolete comment related to long ago removed useNewThrowable > > src/jav

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v3]

2024-12-03 Thread Roger Riggs
On Tue, 3 Dec 2024 09:40:39 GMT, Eirik Bjørsnøs wrote: >> Roger Riggs has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 15 commits: >> >> - Merge branch 'master' into 8345325-sm-remove-getpropert

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v4]

2024-12-03 Thread Roger Riggs
> Remove sun/security/action/GetPropertyAction.java and all uses. > > Dependent on PR#22418 Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Remove an obsolete comment related to long ago removed useNew

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v3]

2024-12-02 Thread Roger Riggs
On Mon, 2 Dec 2024 22:51:55 GMT, Roger Riggs wrote: >> Remove sun/security/action/GetPropertyAction.java and all uses. >> >> Dependent on PR#22418 > > Roger Riggs has updated the pull request with a new target base due to a > merge or a rebase. The pull requ

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v3]

2024-12-02 Thread Roger Riggs
On Mon, 2 Dec 2024 22:51:55 GMT, Roger Riggs wrote: >> Remove sun/security/action/GetPropertyAction.java and all uses. >> >> Dependent on PR#22418 > > Roger Riggs has updated the pull request with a new target base due to a > merge or a rebase. The pull requ

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v3]

2024-12-02 Thread Roger Riggs
> Remove sun/security/action/GetPropertyAction.java and all uses. > > Dependent on PR#22418 Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 15 commits: - Merge branch 'master' into 8345325-sm-remov

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v2]

2024-12-02 Thread Roger Riggs
On Mon, 2 Dec 2024 20:40:23 GMT, Eirik Bjørsnøs wrote: >> Yes, with Sean's changes in #22418, GetPropertyAction et.al. is deleted. > > @RogerRiggs Alan may have referred to the import of `java.util.Properties`. Right, thanks - PR Review Comment: https://git.openjdk.org/jdk/pull/224

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base [v2]

2024-12-02 Thread Roger Riggs
> Remove sun/security/action/GetPropertyAction.java and all uses. > > Dependent on PR#22418 Roger Riggs has updated the pull request incrementally with two additional commits since the last revision: - Remove unused import of Properties - Update copyrights Remove jdk/sun/securi

Re: RFR: 8345325: SM cleanup of GetPropertyAction in java.base

2024-12-02 Thread Roger Riggs
On Mon, 2 Dec 2024 20:19:23 GMT, Alan Bateman wrote: >> Remove sun/security/action/GetPropertyAction.java and all uses. >> >> Dependent on PR#22418 > > src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java line > 710: > >> 708: >> 709: static { >> 710: Properties p

RFR: 8345325: SM cleanup of GetPropertyAction in java.base

2024-12-02 Thread Roger Riggs
Remove sun/security/action/GetPropertyAction.java and all uses. Dependent on PR#22418 - Depends on: https://git.openjdk.org/jdk/pull/22418 Commit messages: - 8345325: SM cleanup of GetPropertyAction in java.base Changes: https://git.openjdk.org/jdk/pull/22497/files Webrev: https

Integrated: 8344565: SM cleanup in jdk/internal and java/lang package private classes

2024-11-26 Thread Roger Riggs
On Mon, 25 Nov 2024 19:14:49 GMT, Roger Riggs wrote: > SM removal for internal implementation classes: > java.lang.CharacterName > java.lang.ref.Finalizer > jdk.internal.icu.impl.ICUBinary > jdk.internal.misc.ExtendedMapMode This pull request has now been integra

Re: RFR: 8344565: SM cleanup in jdk/internal and java/lang package private classes [v2]

2024-11-26 Thread Roger Riggs
On Mon, 25 Nov 2024 23:39:39 GMT, Roger Riggs wrote: >> SM removal for internal implementation classes: >> java.lang.CharacterName >> java.lang.ref.Finalizer >> jdk.internal.icu.impl.ICUBinary >> jdk.internal.misc.ExtendedMapMode > > Roge

Re: RFR: 8344565: SM cleanup in jdk/internal and java/lang package private classes [v2]

2024-11-25 Thread Roger Riggs
> SM removal for internal implementation classes: > java.lang.CharacterName > java.lang.ref.Finalizer > jdk.internal.icu.impl.ICUBinary > jdk.internal.misc.ExtendedMapMode Roger Riggs has updated the pull request incrementally with one additional commit since th

Integrated: 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources

2024-11-25 Thread Roger Riggs
On Fri, 22 Nov 2024 23:05:11 GMT, Roger Riggs wrote: > Cleanup of doPrivileged in: > sun.util.calendar > sun.util.local/provider > sun.util.cldr > sun.util.resources This pull request has now been integrated. Changeset: df2d4c15 Author:Roger Riggs UR

RFR: 8344565: SM cleanup in jdk/internal and java/lang package private classes

2024-11-25 Thread Roger Riggs
SM removal for internal implementation classes: java.lang.CharacterName java.lang.ref.Finalizer jdk.internal.icu.impl.ICUBinary jdk.internal.misc.ExtendedMapMode - Commit messages: - Refactored to remove additional doPrivileged calls - 8344565: SM cleanup in jdk/int

Re: RFR: 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources [v2]

2024-11-22 Thread Roger Riggs
> Cleanup of doPrivileged in: > sun.util.calendar > sun.util.local/provider > sun.util.cldr > sun.util.resources Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Cleanups recommended by reviewer ---

RFR: 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources

2024-11-22 Thread Roger Riggs
Cleanup of doPrivileged in: sun.util.calendar sun.util.local/provider sun.util.cldr sun.util.resources - Commit messages: - 8344898: SM cleanup of java.base sun/util calendar, locale, clde, and resources Changes: https://git.openjdk.org/jdk/pull/22336/files Webrev

Re: RFR: 8344330: Remove AccessController.doPrivileged() from jdk.charsets module [v2]

2024-11-18 Thread Roger Riggs
On Fri, 15 Nov 2024 20:17:59 GMT, Naoto Sato wrote: >> Removing a `AccessController.doPrivileged()` call from jdk.charsets module >> after JEP486 integration. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > fixed import Mar

Integrated: 8344252: SM cleanup in java.util classes

2024-11-15 Thread Roger Riggs
On Thu, 14 Nov 2024 22:09:59 GMT, Roger Riggs wrote: > Remove use of doPrivileged and SecurityManager in java.util. This pull request has now been integrated. Changeset: c5b6ed8c Author: Roger Riggs URL: https://git.openjdk.org/jdk/commit/c5b6ed8ca0d4f9862fd6a890bcd457f735826

Re: RFR: 8344330: Remove AccessController.doPrivileged() from jdk.charsets module [v2]

2024-11-15 Thread Roger Riggs
On Fri, 15 Nov 2024 20:15:10 GMT, Naoto Sato wrote: >> Removing a `AccessController.doPrivileged()` call from jdk.charsets module >> after JEP486 integration. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > fixed import loo

Re: RFR: 8344252: SM cleanup in java.util classes [v3]

2024-11-15 Thread Roger Riggs
> Remove use of doPrivileged and SecurityManager in java.util. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Correct @see link syntax in AbstractResourceBundleProvider - Changes: - all: https://git.openjdk.org/

Re: RFR: 8344252: SM cleanup in java.util classes [v2]

2024-11-15 Thread Roger Riggs
> Remove use of doPrivileged and SecurityManager in java.util. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Applied suggestions from review comments - Changes: - all: https://git.openjdk.org/jdk/pull/22122/fi

RFR: 8344252: SM cleanup in java.util classes

2024-11-14 Thread Roger Riggs
Remove use of doPrivileged and SecurityManager in java.util. - Commit messages: - 8344252: SM cleanup in java.util classes Changes: https://git.openjdk.org/jdk/pull/22122/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22122&range=00 Issue: https://bugs.openjdk.org/browse

Integrated: 8344039: Remove security manager dependency in java.time

2024-11-13 Thread Roger Riggs
On Tue, 12 Nov 2024 15:41:01 GMT, Roger Riggs wrote: > After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), java.time > implementation dependencies on doPriviledged and AccessController are removed. > Some refactoring to cleanup the remaining code is expected. This pul

Re: RFR: 8344039: Remove security manager dependency in java.time [v3]

2024-11-13 Thread Roger Riggs
> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), > Serialization implementation dependencies on doPriviledged and > AccessController are removed. > Some refactoring to cleanup the remaining code is expected. Roger Riggs has updated the pull request incrementa

Re: RFR: 8344039: Remove security manager dependency in java.time [v2]

2024-11-13 Thread Roger Riggs
> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), > Serialization implementation dependencies on doPriviledged and > AccessController are removed. > Some refactoring to cleanup the remaining code is expected. Roger Riggs has updated the pull request incrementa

RFR: 8344039: Remove security manager dependency in java.time

2024-11-12 Thread Roger Riggs
After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), Serialization implementation dependencies on doPriviledged and AccessController are removed. Some refactoring to cleanup the remaining code is expected. - Commit messages: - Merge branch 'master' into 8344039-sm-clean

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5 [v3]

2024-10-23 Thread Roger Riggs
On Tue, 22 Oct 2024 22:17:11 GMT, Naoto Sato wrote: >> This is a regression caused by the fix to >> [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the >> default locale with `user.region` creation is inadvertently broken. Fix is >> to restore the user.region override within

Re: RFR: 8342863: Use pattern matching for instanceof in equals methods of wrapper classes

2024-10-23 Thread Roger Riggs
On Wed, 23 Oct 2024 02:06:20 GMT, Joe Darcy wrote: > Noticed this refactoring opportunity while doing some other work in the area. lgtm - Marked as reviewed by rriggs (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/21652#pullrequestreview-2389308583

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5

2024-10-22 Thread Roger Riggs
On Tue, 22 Oct 2024 18:09:57 GMT, Naoto Sato wrote: > This is a regression caused by the fix to > [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the default > locale with `user.region` creation is inadvertently broken. Fix is to restore > the user.region override within Stat

Re: RFR: 8335271: Specify the MessageFormat ArgumentIndex Implementation Limit [v3]

2024-10-17 Thread Roger Riggs
On Thu, 17 Oct 2024 20:11:16 GMT, Justin Lu wrote: >> Please review this PR which specifies the _j.text.MessageFormat_ >> ArgumentIndex limit. A corresponding CSR is drafted. >> >> Both the existence of the limit (and behavior if violated), as well as this >> implementation's limit are added t

Re: RFR: 8335271: Specify the MessageFormat ArgumentIndex Implementation Limit

2024-10-17 Thread Roger Riggs
On Wed, 16 Oct 2024 22:48:58 GMT, Justin Lu wrote: > Please review this PR which specifies the _j.text.MessageFormat_ > ArgumentIndex limit. A corresponding CSR is drafted. > > Both the existence of the limit (and behavior if violated), as well as this > implementation's limit are added to the

Re: RFR: 8338690: CompactNumberInstance.format incorrectly formats some numbers (few vs many)

2024-08-23 Thread Roger Riggs
On Fri, 23 Aug 2024 17:54:55 GMT, Roger Riggs wrote: >> Fixing an issue wrt wrong plural suffix with compact format for some >> locales. It was retrieving the suffix based on the value before the >> rounding, which ended up in wrong plural expression. > > src/java.base

Re: RFR: 8338690: CompactNumberInstance.format incorrectly formats some numbers (few vs many)

2024-08-23 Thread Roger Riggs
On Thu, 22 Aug 2024 16:14:08 GMT, Naoto Sato wrote: > Fixing an issue wrt wrong plural suffix with compact format for some locales. > It was retrieving the suffix based on the value before the rounding, which > ended up in wrong plural expression. lgtm - Marked as reviewed by rri

Re: RFR: 8338690: CompactNumberInstance.format incorrectly formats some numbers (few vs many)

2024-08-23 Thread Roger Riggs
On Thu, 22 Aug 2024 16:14:08 GMT, Naoto Sato wrote: > Fixing an issue wrt wrong plural suffix with compact format for some locales. > It was retrieving the suffix based on the value before the rounding, which > ended up in wrong plural expression. src/java.base/share/classes/java/text/CompactN

Re: RFR: 8337838: Remove unused methods from ChronoLocalDateImpl

2024-08-07 Thread Roger Riggs
On Fri, 19 Jul 2024 09:52:50 GMT, Andrey Turbanov wrote: > A few methods in `java.time.chrono.ChronoLocalDateImpl` are unused and could > be removed: > 1. plusWeeks(long) > 2. minusYears(long) > 3. minusMonths(long) > 4. minusWeeks(long) > 5. minusDays(long) > > Tested `test/jdk/java/time` on L

Re: RFR: 8337838: Remove unused methods from ChronoLocalDateImpl

2024-08-06 Thread Roger Riggs
On Fri, 19 Jul 2024 09:52:50 GMT, Andrey Turbanov wrote: > A few methods in `java.time.chrono.ChronoLocalDateImpl` are unused and could > be removed: > 1. plusWeeks(long) > 2. minusYears(long) > 3. minusMonths(long) > 4. minusWeeks(long) > 5. minusDays(long) > > Tested `test/jdk/java/time` on L

Re: RFR: 8337279: Optimize format instant [v2]

2024-07-26 Thread Roger Riggs
On Fri, 26 Jul 2024 15:53:11 GMT, Andriy Plokhotnyuk wrote: > Could you please review [these](https://github.com/openjdk/jdk/pull/11986) > proposed changes for instantiation of `Instant` values with already > normalized nanos? @plokhotnyuk Your contribution cannot be acted upon until the OCA i

Re: RFR: 8335791: Speed ​​up j.u.Formatter & String.format [v4]

2024-07-22 Thread Roger Riggs
On Sat, 6 Jul 2024 00:15:04 GMT, Shaojin Wen wrote: >> String.format is widely used, and improving its performance is very >> meaningful. This PR can significantly improve the performance of >> String.format. Sorry, there are many changes, which will take a lot of time. >> I hope you can revie

Re: RFR: 8336792: DateTimeFormatterBuilder append zeros based on StringBuilder.repeat

2024-07-19 Thread Roger Riggs
On Thu, 18 Jul 2024 23:36:37 GMT, Shaojin Wen wrote: > The StringBuilder.repeat method was added in JDK 21, which can be used to > make some minor optimizations to existing code, including > DateTimeFormatterBuilder lgtm - Marked as reviewed by rriggs (Reviewer). PR Review: http

Re: RFR: 8333396: Use StringBuilder internally for java.text.Format.* formatting [v21]

2024-07-19 Thread Roger Riggs
On Fri, 19 Jul 2024 13:03:31 GMT, Chen Liang wrote: >> lingjun-cg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 896: Use StringBuilder internally for java.text.Format.* formatting > > src/java.base/share/classes/java/text/Format.ja

Re: RFR: 8335366: Improve String.format performance with fastpath [v12]

2024-07-02 Thread Roger Riggs
On Mon, 1 Jul 2024 19:17:50 GMT, Shaojin Wen wrote: >> We need a String format solution with good performance. String Template was >> once expected, but it has been removed. j.u.Formatter is powerful, but its >> performance is not good enough. >> >> This PR implements a subset of j.u.Formatter

Re: RFR: 8331646: Add specific regression leap year tests [v5]

2024-05-10 Thread Roger Riggs
On Fri, 10 May 2024 09:22:39 GMT, serhiysachkov wrote: >> Calendar.add() tests that describe its behavior. > > serhiysachkov has updated the pull request incrementally with one additional > commit since the last revision: > > JDK-8331646 fixing typo A bit late but the descriptions of the pro

Re: RFR: JDK-8331646: Add specific regression leap year tests (Task - P4)

2024-05-06 Thread Roger Riggs
On Fri, 3 May 2024 10:31:14 GMT, serhiysachkov wrote: > Calendar.add() tests that describe its behavior. The bug report and/or the PR description should describe the change in more detail. What conditions of the Calendar spec are being tested. Thanks - PR Comment: https://git.ope

Re: RFR: 8330802: Desugar switch in Locale::createLocale [v2]

2024-04-22 Thread Roger Riggs
On Mon, 22 Apr 2024 14:11:41 GMT, Claes Redestad wrote: >> This switch expression in `Locale::createLocale` is causing a somewhat large >> startup regression on my local system. Desugaring to if statements seem like >> the right thing to do while we investigate ways to further reduce overheads

Re: RFR: 8212895: ChronoField.INSTANT_SECONDS's range doesn't match the range of Instant [v3]

2024-04-16 Thread Roger Riggs
On Wed, 10 Apr 2024 16:17:32 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix the issue >> noted in https://bugs.openjdk.org/browse/JDK-8212895? >> >> As noted in that issue, the `ChronoField.INSTANT_SECONDS` currently is >> initialized to have a minim

Re: RFR: 8212895: ChronoField.INSTANT_SECONDS's range doesn't match the range of Instant [v2]

2024-04-09 Thread Roger Riggs
On Tue, 9 Apr 2024 08:34:39 GMT, Jaikiran Pai wrote: >> Should `INSTANT_SECONDS("InstantSeconds", SECONDS, FOREVER, >> ValueRange.of(Instant.MIN.getEpochSecond(), Instant.MAX.getEpochSecond())), >> ` work? > > Hello Naoto, that's a very good point. I was too caught up with the constant > values

Re: RFR: 8212895: ChronoField.INSTANT_SECONDS's range doesn't match the range of Instant [v2]

2024-04-09 Thread Roger Riggs
On Tue, 9 Apr 2024 08:37:29 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix the issue >> noted in https://bugs.openjdk.org/browse/JDK-8212895? >> >> As noted in that issue, the `ChronoField.INSTANT_SECONDS` currently is >> initialized to have a minimu

Re: RFR: 8212895: ChronoField.INSTANT_SECONDS's range doesn't match the range of Instant

2024-04-08 Thread Roger Riggs
On Mon, 8 Apr 2024 18:00:02 GMT, Naoto Sato wrote: >> Can I please get a review of this change which proposes to fix the issue >> noted in https://bugs.openjdk.org/browse/JDK-8212895? >> >> As noted in that issue, the `ChronoField.INSTANT_SECONDS` currently is >> initialized to have a minimum

Re: RFR: 8327167: Clarify the handling of Leap year by Calendar

2024-03-08 Thread Roger Riggs
On Thu, 7 Mar 2024 19:28:13 GMT, Naoto Sato wrote: > A simple doc update to include a leap day example in the `Calendar` class. Marked as reviewed by rriggs (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/18158#pullrequestreview-1925260836

Re: RFR: 8327434: Test java/util/PluggableLocale/TimeZoneNameProviderTest.java timed out

2024-03-06 Thread Roger Riggs
On Wed, 6 Mar 2024 21:32:11 GMT, Naoto Sato wrote: > Fixing timeout failures in the test case. Time zone names that are missing > (chiefly for minor locales) are now calculated at runtime after the fix to > JDK-8174269. This extra calculation time was multiplied in the test case as > it iterat

Re: RFR: JDK-8326908: DecimalFormat::toPattern throws OutOfMemoryError when pattern is empty string

2024-03-04 Thread Roger Riggs
On Sat, 2 Mar 2024 00:34:32 GMT, Justin Lu wrote: > Please review this PR and corresponding CSR which prevents an > OutOfMemoryError by restricting the initial maximum fraction digits for an > empty pattern DecimalFormat. > > For an empty String pattern DecimalFormat, the maximum fraction digi

Re: RFR: 8309622: Re-examine the cache mechanism in BaseLocale [v11]

2024-03-01 Thread Roger Riggs
On Fri, 1 Mar 2024 21:29:17 GMT, Naoto Sato wrote: >> This is stemming from the PR: https://github.com/openjdk/jdk/pull/14211 >> where aggressive GC can cause NPE in `BaseLocale$Key` class. I refactored >> the in-house cache with WeakHashMap, and removed the Key class as it is no >> longer nee

Re: RFR: JDK-8318761: MessageFormat pattern support for CompactNumberFormat, ListFormat, and DateTimeFormatter [v7]

2024-02-09 Thread Roger Riggs
On Thu, 8 Feb 2024 21:29:19 GMT, Justin Lu wrote: >> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8319344) >> which adds MessageFormat pattern support for the following subformats: >> ListFormat, CompactNumberFormat, and DateTimeFormatter. This change is >> intended to p

Re: RFR: JDK-8318761: MessageFormat pattern support for CompactNumberFormat, ListFormat, and DateTimeFormatter [v4]

2024-02-07 Thread Roger Riggs
On Wed, 7 Feb 2024 00:48:30 GMT, Naoto Sato wrote: >> One idea would be to delegate to a (package-private) method in the formatXXX >> class. >> That would localize to the respective class the details. >> (An abstract protected method might be preferred, but its not worth creating >> extra publ

Re: RFR: JDK-8318761: MessageFormat pattern support for CompactNumberFormat, ListFormat, and DateTimeFormatter [v4]

2024-02-06 Thread Roger Riggs
On Tue, 6 Feb 2024 22:31:32 GMT, Justin Lu wrote: >> src/java.base/share/classes/java/text/MessageFormat.java line 681: >> >>> 679: if (fmt instanceof NumberFormat) { >>> 680: // Add any instances returned from the NumberFormat >>> factory methods >>> 681: if (fm

Re: RFR: JDK-8318761: MessageFormat pattern support for CompactNumberFormat, ListFormat, and DateTimeFormatter [v4]

2024-02-06 Thread Roger Riggs
On Fri, 2 Feb 2024 22:24:49 GMT, Naoto Sato wrote: >> We discussed this separately, but will go over again here in case others are >> interested. Since DTF does not implement `equals()`, even if we implement >> `equals()` for the `ClassicFormat`, we would basically still need to >> implement o

Re: RFR: JDK-8318761: MessageFormat pattern support for CompactNumberFormat, ListFormat, and DateTimeFormatter [v4]

2024-02-06 Thread Roger Riggs
On Mon, 5 Feb 2024 23:51:00 GMT, Justin Lu wrote: >> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8319344) >> which adds MessageFormat pattern support for the following subformats: >> ListFormat, CompactNumberFormat, and DateTimeFormatter. This change is >> intended to p

Re: RFR: 8324665: Loose matching of space separators in the lenient date/time parsing mode

2024-02-02 Thread Roger Riggs
On Fri, 2 Feb 2024 21:08:33 GMT, Joe Wang wrote: > You are right, Joe. Apps using `java.time` formatters would still need to > make changes to their code base. However, the bar is significantly lower. > They would have to write some ugly workaround without this fix. I'd also expect that applic

Re: RFR: 8323699: MessageFormat.toPattern() generates non-equivalent MessageFormat pattern [v5]

2024-01-26 Thread Roger Riggs
On Thu, 25 Jan 2024 21:38:54 GMT, Archie Cobbs wrote: >> Please consider this fix to ensure that going from `MessageFormat` to >> pattern string via `toPattern()` and then back via `new MessageFormat()` >> results in a format that is equivalent to the original. >> >> The quoting and escaping r

Re: RFR: JDK-8321545: Override toString() for Format subclasses [v5]

2024-01-23 Thread Roger Riggs
On Fri, 12 Jan 2024 22:41:46 GMT, Justin Lu wrote: >> Please review this PR which implements toString() for the `Format` >> subclasses. Corresponding CSR: >> [JDK-8323088](https://bugs.openjdk.org/browse/JDK-8323088) >> >> The general specification follows a template that provides the locale (

Re: RFR: JDK-8321545: Override toString() for Format subclasses [v4]

2024-01-12 Thread Roger Riggs
On Fri, 12 Jan 2024 19:07:46 GMT, Justin Lu wrote: >> Please review this PR which implements toString() for the `Format` >> subclasses. Corresponding CSR: >> [JDK-8323088](https://bugs.openjdk.org/browse/JDK-8323088) >> >> The general specification follows a template that provides the locale (

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Roger Riggs
On Tue, 9 Jan 2024 20:01:28 GMT, Joe Wang wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reflects review comments > > src/java.base/share/classes/java/lang/System.java line 819: > >> 817: * >> 818: * Add

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Roger Riggs
On Tue, 9 Jan 2024 19:23:53 GMT, Naoto Sato wrote: >> Adding an explanation of the locale-related system properties in the >> `System.getProperties()` method. Corresponding CSR has also been drafted. > > Naoto Sato has updated the pull request incrementally with one additional > commit since th

  1   2   3   >