From psadhukhan at openjdk.java.net Tue Feb 1 09:40:10 2022 From: psadhukhan at openjdk.java.net (Prasanta Sadhukhan) Date: Tue, 1 Feb 2022 09:40:10 GMT Subject: RFR: 8278254: Cleanup doclint warnings in java.desktop module [v7] In-Reply-To: References: Message-ID: <_awiHsHuZRphG5RJNGzfj_o1LeWHjXtuppzT0jlMcw4=.09005b0a-af8a-415c-9ca2-192ed89492d8@github.com> > The changes done under JDK-8278175 suppress on a per-file basis various missing comments that would otherwise trigger doclint warnings. Fixed them so as to remove the doclint:missing warnings. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Implement CSR suggestion ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7004/files - new: https://git.openjdk.java.net/jdk/pull/7004/files/aebc9d70..17bb943e Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7004&range=06 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7004&range=05-06 Stats: 18 lines in 1 file changed: 0 ins; 12 del; 6 mod Patch: https://git.openjdk.java.net/jdk/pull/7004.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7004/head:pull/7004 PR: https://git.openjdk.java.net/jdk/pull/7004 From aivanov at openjdk.java.net Tue Feb 1 10:35:24 2022 From: aivanov at openjdk.java.net (Alexey Ivanov) Date: Tue, 1 Feb 2022 10:35:24 GMT Subject: RFR: 8278254: Cleanup doclint warnings in java.desktop module [v7] In-Reply-To: <_awiHsHuZRphG5RJNGzfj_o1LeWHjXtuppzT0jlMcw4=.09005b0a-af8a-415c-9ca2-192ed89492d8@github.com> References: <_awiHsHuZRphG5RJNGzfj_o1LeWHjXtuppzT0jlMcw4=.09005b0a-af8a-415c-9ca2-192ed89492d8@github.com> Message-ID: On Tue, 1 Feb 2022 09:40:10 GMT, Prasanta Sadhukhan wrote: >> The changes done under JDK-8278175 suppress on a per-file basis various missing comments that would otherwise trigger doclint warnings. Fixed them so as to remove the doclint:missing warnings. > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Implement CSR suggestion Marked as reviewed by aivanov (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/7004 From psadhukhan at openjdk.java.net Wed Feb 2 10:08:15 2022 From: psadhukhan at openjdk.java.net (Prasanta Sadhukhan) Date: Wed, 2 Feb 2022 10:08:15 GMT Subject: Integrated: 8278254: Cleanup doclint warnings in java.desktop module In-Reply-To: References: Message-ID: <-oL3VoOKtWTNHdU4B7Z2frweJ_cpb48qSLShF2pmyc0=.3972dd57-8f5c-4c8b-8f27-83d333c6cbfc@github.com> On Mon, 10 Jan 2022 05:25:51 GMT, Prasanta Sadhukhan wrote: > The changes done under JDK-8278175 suppress on a per-file basis various missing comments that would otherwise trigger doclint warnings. Fixed them so as to remove the doclint:missing warnings. This pull request has now been integrated. Changeset: ae2504b4 Author: Prasanta Sadhukhan URL: https://git.openjdk.java.net/jdk/commit/ae2504b4692a5298b5835727b04a44e1edc8a4d6 Stats: 275 lines in 19 files changed: 193 ins; 24 del; 58 mod 8278254: Cleanup doclint warnings in java.desktop module Reviewed-by: aivanov, serb ------------- PR: https://git.openjdk.java.net/jdk/pull/7004 From naoto at openjdk.java.net Fri Feb 4 00:11:20 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Fri, 4 Feb 2022 00:11:20 GMT Subject: RFR: 8176706: Additional Date-Time Formats Message-ID: Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html ------------- Commit messages: - Removed trailing space - Merge branch 'master' into skeleton - Tidying up - Some more tests - Brought back the part that was mistakenly removed - Merge branch 'master' into skeleton - Reverted IllegalArgumentException back - Further cleanups - Removed exceptions from ofLocalizedPattern() method, as they are lazily thrown on format() - Cleanup - ... and 19 more: https://git.openjdk.java.net/jdk/compare/cda9c301...f9311dce Changes: https://git.openjdk.java.net/jdk/pull/7340/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8176706 Stats: 777 lines in 12 files changed: 733 ins; 9 del; 35 mod Patch: https://git.openjdk.java.net/jdk/pull/7340.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7340/head:pull/7340 PR: https://git.openjdk.java.net/jdk/pull/7340 From rriggs at openjdk.java.net Mon Feb 7 23:27:04 2022 From: rriggs at openjdk.java.net (Roger Riggs) Date: Mon, 7 Feb 2022 23:27:04 GMT Subject: RFR: 8176706: Additional Date-Time Formats In-Reply-To: References: Message-ID: On Thu, 3 Feb 2022 23:29:54 GMT, Naoto Sato wrote: > Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. > > [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 5115: > 5113: > 5114: private LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle, String requestedTemplate) { > 5115: this.dateStyle = dateStyle; Drop this constructor; it opens up the possibility of ambiguity between the modes. Keep only the two constructors with disjoint checking and initialization. src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 5151: > 5149: */ > 5150: private DateTimeFormatter formatter(Locale locale, Chronology chrono) { > 5151: var dtStyle = dateStyle !=null || timeStyle != null; Switch to using requestedTemplate == null or != null as the discriminator. src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 5162: > 5160: > 5161: formatter = new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(locale); > 5162: DateTimeFormatter old = FORMATTER_CACHE.putIfAbsent(key, formatter); .computeIfAbsent(key, () -> {....}) might be a bit cleaner/clearer here and avoid the race a few lines of code below. (a slight improvement in old code). src/java.base/share/classes/sun/util/locale/provider/LocaleResources.java line 606: > 604: var matcher = VALID_SKELETON_PATTERN.matcher(skeleton); > 605: if (!matcher.matches()) { > 606: throw new IllegalArgumentException("Requested template is invalid: " + requestedTemplate); The substitutions are not going to be visible in the exception message. That might make it harder to identify and fix the cause of the exception. Perhaps the message can make it clear that the matching was done after substitutions and show the 'skeleton'. ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From joehw at openjdk.java.net Tue Feb 8 01:06:07 2022 From: joehw at openjdk.java.net (Joe Wang) Date: Tue, 8 Feb 2022 01:06:07 GMT Subject: RFR: 8176706: Additional Date-Time Formats In-Reply-To: References: Message-ID: On Thu, 3 Feb 2022 23:29:54 GMT, Naoto Sato wrote: > Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. > > [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 254: > 252: public static String getLocalizedDateTimePattern(String requestedTemplate, > 253: Chronology chrono, Locale locale) { > 254: Objects.requireNonNull(locale, "requestedTemplate"); Typo, "locale" should have been requestedTemplate. src/java.base/share/classes/sun/util/locale/provider/JavaTimeDateTimePatternImpl.java line 77: > 75: LocaleProviderAdapter lpa = LocaleProviderAdapter.getResourceBundleBased(); > 76: // CLDR's 'u'/'U' are not supported in the JDK. Replace them with 'y' instead > 77: final var modifiedSkeleton = requestedTemplate.replaceAll("[uU]", "y"); Seems to me requestedTemplate needs to be validated when it gets passed to getLocalizedDateTimePattern, similar as to appendLocalized ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Tue Feb 8 18:40:40 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Tue, 8 Feb 2022 18:40:40 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v2] In-Reply-To: References: Message-ID: > Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. > > [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Modified per suggestions on the PR ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7340/files - new: https://git.openjdk.java.net/jdk/pull/7340/files/f9311dce..059132f5 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=00-01 Stats: 80 lines in 4 files changed: 23 ins; 37 del; 20 mod Patch: https://git.openjdk.java.net/jdk/pull/7340.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7340/head:pull/7340 PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Tue Feb 8 18:47:06 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Tue, 8 Feb 2022 18:47:06 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v2] In-Reply-To: References: Message-ID: On Tue, 8 Feb 2022 00:39:04 GMT, Joe Wang wrote: >> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: >> >> Modified per suggestions on the PR > > src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 254: > >> 252: public static String getLocalizedDateTimePattern(String requestedTemplate, >> 253: Chronology chrono, Locale locale) { >> 254: Objects.requireNonNull(locale, "requestedTemplate"); > > Typo, "locale" should have been requestedTemplate. Good catch! > src/java.base/share/classes/sun/util/locale/provider/JavaTimeDateTimePatternImpl.java line 77: > >> 75: LocaleProviderAdapter lpa = LocaleProviderAdapter.getResourceBundleBased(); >> 76: // CLDR's 'u'/'U' are not supported in the JDK. Replace them with 'y' instead >> 77: final var modifiedSkeleton = requestedTemplate.replaceAll("[uU]", "y"); > > Seems to me requestedTemplate needs to be validated when it gets passed to getLocalizedDateTimePattern, similar as to appendLocalized This was a left over which should be removed. In fact, CLDR specific pattern symbols should not be accepted as the requested template. Removed the substitutions. As to the validation, it will be performed in the following `LocaleResources.getLocalizedPattern()` method. ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Tue Feb 8 18:47:07 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Tue, 8 Feb 2022 18:47:07 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v2] In-Reply-To: References: Message-ID: On Mon, 7 Feb 2022 21:22:12 GMT, Roger Riggs wrote: >> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: >> >> Modified per suggestions on the PR > > src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 5162: > >> 5160: >> 5161: formatter = new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(locale); >> 5162: DateTimeFormatter old = FORMATTER_CACHE.putIfAbsent(key, formatter); > > .computeIfAbsent(key, () -> {....}) might be a bit cleaner/clearer here and avoid the race a few lines of code below. (a slight improvement in old code). Good point. Changed to `computeIfAbsent()`. ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Tue Feb 8 19:08:45 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Tue, 8 Feb 2022 19:08:45 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v3] In-Reply-To: References: Message-ID: > Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. > > [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Fixed LocalizedPrinterParser.toString() to reflect requestedTemplate ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7340/files - new: https://git.openjdk.java.net/jdk/pull/7340/files/059132f5..41408ff3 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=02 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=01-02 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.java.net/jdk/pull/7340.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7340/head:pull/7340 PR: https://git.openjdk.java.net/jdk/pull/7340 From joehw at openjdk.java.net Tue Feb 8 22:30:05 2022 From: joehw at openjdk.java.net (Joe Wang) Date: Tue, 8 Feb 2022 22:30:05 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v3] In-Reply-To: References: Message-ID: <2dgb4gSfu-fI50MrhPVEkdnADRNN66izgUPngz8moKI=.6a74b414-0480-4fac-9bfe-1eefbe8c9256@github.com> On Tue, 8 Feb 2022 19:08:45 GMT, Naoto Sato wrote: >> Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. >> >> [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html > > Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: > > Fixed LocalizedPrinterParser.toString() to reflect requestedTemplate Marked as reviewed by joehw (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From rriggs at openjdk.java.net Thu Feb 10 21:35:11 2022 From: rriggs at openjdk.java.net (Roger Riggs) Date: Thu, 10 Feb 2022 21:35:11 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v3] In-Reply-To: References: Message-ID: On Tue, 8 Feb 2022 19:08:45 GMT, Naoto Sato wrote: >> Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. >> >> [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html > > Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: > > Fixed LocalizedPrinterParser.toString() to reflect requestedTemplate make/jdk/src/classes/build/tools/cldrconverter/Bundle.java line 113: > 111: // DateFormatItem prefix > 112: final static String DATEFORMATITEM_KEY_PREFIX = "DateFormatItem."; > 113: final static String DATEFORMATITEM_INPUT_REGIONS_PREFIX = "DateFormatItemInputRegions."; The canonical order of modifiers is "static final". ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From rriggs at openjdk.java.net Thu Feb 10 22:26:30 2022 From: rriggs at openjdk.java.net (Roger Riggs) Date: Thu, 10 Feb 2022 22:26:30 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v3] In-Reply-To: References: Message-ID: On Tue, 8 Feb 2022 19:08:45 GMT, Naoto Sato wrote: >> Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. >> >> [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html > > Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: > > Fixed LocalizedPrinterParser.toString() to reflect requestedTemplate src/java.base/share/classes/java/time/format/DateTimeFormatter.java line 742: > 740: * All pattern symbols are optional, and each pattern symbol represents the field it is in, > 741: * e.g., 'M' represents the Month field. The number of the pattern symbol letters follows the > 742: * same presentation, such as "number" or "text" as in the Patterns for I would reword as: * All pattern symbols are optional, and each pattern symbol represents a field, * for example, 'M' represents the Month field. The number of the pattern symbol letters follows the src/java.base/share/classes/java/time/format/DateTimeFormatter.java line 753: > 751: *

> 752: * The locale is determined from the formatter. The formatter returned directly by > 753: * this method will use the {@link Locale#getDefault() default FORMAT locale}. Editorial suggestion: * this method uses the {https://github.com/link Locale#getDefault() default FORMAT locale}. src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 231: > 229: > 230: /** > 231: * Gets the formatting pattern for the requested template for a locale and chronology. "Returns" is more conventional (than "Gets; though it is consistent within the file) src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 246: > 244: * @param locale the locale, non-null > 245: * @return the locale and Chronology specific formatting pattern > 246: * @throws IllegalArgumentException if {@code requestedTemplate} is invalid The meaning "Invalid" should be clearly defined; repeating or refering to the template regex. src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 1485: > 1483: *

  • the {@code requestedTemplate} specified to this method > 1484: *
  • the {@code Locale} of the {@code DateTimeFormatter} > 1485: *
  • the {@code Chronology}, selecting the best available Perhaps "best available" should be well defined, or just drop "best". or ... "of the {@code DateTimeFormatter} unless overridden" src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 1513: > 1511: * } > 1512: * All pattern symbols are optional, and each pattern symbol represents the field it is in, > 1513: * e.g., 'M' represents the Month field. The number of the pattern symbol letters follows the Ditto above: * All pattern symbols are optional, and each pattern symbol represents the field, * for example, 'M' represents the Month field. The number of the pattern symbol letters follows the src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 5148: > 5146: var useRequestedTemplate = requestedTemplate != null; > 5147: String key = chrono.getId() + '|' + locale.toString() + '|' + > 5148: (useRequestedTemplate ? requestedTemplate : Objects.toString(dateStyle) + timeStyle); The boolean `useRequestedTemplate` isn't necessary, replace with `requestedTemplate != null`. src/java.base/share/classes/sun/text/spi/JavaTimeDateTimePatternProvider.java line 64: > 62: > 63: /** > 64: * Gets the formatting pattern for the requested template, calendarType, and locale. "Returns" is more conventional. src/java.base/share/classes/sun/util/locale/provider/JavaTimeDateTimePatternImpl.java line 69: > 67: public String getJavaTimeDateTimePattern(int timeStyle, int dateStyle, String calType, Locale locale) { > 68: LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased().getLocaleResources(locale); > 69: return lr.getJavaTimeDateTimePattern( Fold the parameters onto a single line. src/java.base/share/classes/sun/util/locale/provider/LocaleResources.java line 690: > 688: private String resolveInputSkeleton(String type) { > 689: var regionToSkeletonMap = inputSkeletons.get(type); > 690: return regionToSkeletonMap.getOrDefault(locale.getLanguage() + "-" + locale.getCountry(), This structure computes all the defaults even if the value isn't needed (because the value has to be passed to the `getOrDefault` method. Perhaps performance isn't an issue. ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Fri Feb 11 00:03:50 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Fri, 11 Feb 2022 00:03:50 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v4] In-Reply-To: References: Message-ID: > Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. > > [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Addressing review comments ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7340/files - new: https://git.openjdk.java.net/jdk/pull/7340/files/41408ff3..af3c0d62 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=03 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=02-03 Stats: 33 lines in 5 files changed: 1 ins; 2 del; 30 mod Patch: https://git.openjdk.java.net/jdk/pull/7340.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7340/head:pull/7340 PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Fri Feb 11 00:03:52 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Fri, 11 Feb 2022 00:03:52 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v3] In-Reply-To: References: Message-ID: On Thu, 10 Feb 2022 22:20:48 GMT, Roger Riggs wrote: >> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: >> >> Fixed LocalizedPrinterParser.toString() to reflect requestedTemplate > > src/java.base/share/classes/sun/util/locale/provider/LocaleResources.java line 690: > >> 688: private String resolveInputSkeleton(String type) { >> 689: var regionToSkeletonMap = inputSkeletons.get(type); >> 690: return regionToSkeletonMap.getOrDefault(locale.getLanguage() + "-" + locale.getCountry(), > > This structure computes all the defaults even if the value isn't needed (because the value has to be passed to the `getOrDefault` method. Perhaps performance isn't an issue. Indeed, yes. I thought this was simple enough, and as you said, not performance-critical. ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From rriggs at openjdk.java.net Fri Feb 11 22:45:05 2022 From: rriggs at openjdk.java.net (Roger Riggs) Date: Fri, 11 Feb 2022 22:45:05 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v4] In-Reply-To: References: Message-ID: On Fri, 11 Feb 2022 00:03:50 GMT, Naoto Sato wrote: >> Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. >> >> [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html > > Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: > > Addressing review comments Looks good. src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 5103: > 5101: * @param timeStyle the time style to use, may be null > 5102: */ > 5103: LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle) { Can the constructors be `private`. The combination of package protected and the style of caller doing the validation makes me a bit nervous. There should not be any callers outside of DateTimeFormatterBuilder. src/java.base/share/classes/sun/text/spi/JavaTimeDateTimePatternProvider.java line 66: > 64: * Returns the formatting pattern for the requested template, calendarType, and locale. > 65: * Concrete implementation of this method will retrieve > 66: * a java.time specific pattern from selected Locale Provider. editorial: "from **the** selected Locale"... src/java.base/share/classes/sun/text/spi/JavaTimeDateTimePatternProvider.java line 79: > 77: public String getJavaTimeDateTimePattern(String requestedTemplate, String calType, Locale locale) { > 78: // default implementation throws exception > 79: throw new DateTimeException("Formatter is not available for the requested template: " + requestedTemplate); "Formatting **pattern** is not available"... ------------- Marked as reviewed by rriggs (Reviewer). PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Fri Feb 11 23:55:46 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Fri, 11 Feb 2022 23:55:46 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v5] In-Reply-To: References: Message-ID: > Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. > > [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Addressing review comments ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7340/files - new: https://git.openjdk.java.net/jdk/pull/7340/files/af3c0d62..399257d4 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=04 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7340&range=03-04 Stats: 31 lines in 2 files changed: 3 ins; 0 del; 28 mod Patch: https://git.openjdk.java.net/jdk/pull/7340.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7340/head:pull/7340 PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Fri Feb 11 23:55:49 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Fri, 11 Feb 2022 23:55:49 GMT Subject: RFR: 8176706: Additional Date-Time Formats [v4] In-Reply-To: References: Message-ID: On Fri, 11 Feb 2022 22:26:03 GMT, Roger Riggs wrote: >> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: >> >> Addressing review comments > > src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java line 5103: > >> 5101: * @param timeStyle the time style to use, may be null >> 5102: */ >> 5103: LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle) { > > Can the constructors be `private`. > The combination of package protected and the style of caller doing the validation makes me a bit nervous. > There should not be any callers outside of DateTimeFormatterBuilder. Changed to `private` so that it can only be instantiated within `DateTimeFormatterBuilder`. Same modifications are applied to other `DateTimePrinterParser` implementations. > src/java.base/share/classes/sun/text/spi/JavaTimeDateTimePatternProvider.java line 79: > >> 77: public String getJavaTimeDateTimePattern(String requestedTemplate, String calType, Locale locale) { >> 78: // default implementation throws exception >> 79: throw new DateTimeException("Formatter is not available for the requested template: " + requestedTemplate); > > "Formatting **pattern** is not available"... Modified, as well as other minor corrections in the javadoc. ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Mon Feb 14 19:45:34 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Mon, 14 Feb 2022 19:45:34 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range Message-ID: Fixing an issue in `CompactNumberFormat` which was caused by BigDecimal.divide() that incremented the number in the resulting format string. Also fixing some typos by taking this opportunity. ------------- Commit messages: - 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range Changes: https://git.openjdk.java.net/jdk/pull/7412/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7412&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8281317 Stats: 42 lines in 2 files changed: 31 ins; 0 del; 11 mod Patch: https://git.openjdk.java.net/jdk/pull/7412.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7412/head:pull/7412 PR: https://git.openjdk.java.net/jdk/pull/7412 From joehw at openjdk.java.net Tue Feb 15 22:03:05 2022 From: joehw at openjdk.java.net (Joe Wang) Date: Tue, 15 Feb 2022 22:03:05 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range In-Reply-To: References: Message-ID: On Wed, 9 Feb 2022 22:37:45 GMT, Naoto Sato wrote: > Fixing an issue in `CompactNumberFormat` which was caused by BigDecimal.divide() that incremented the number in the resulting format string. Also fixing some typos by taking this opportunity. src/java.base/share/classes/java/text/CompactNumberFormat.java line 595: > 593: divisor = (Long) divisors.get(++compactDataIndex); > 594: iPart = getIntegerPart(number, divisor); > 595: } This and the few lines surrounding it were duplicated. Might be worth considering consolidation. ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From joehw at openjdk.java.net Tue Feb 15 22:08:09 2022 From: joehw at openjdk.java.net (Joe Wang) Date: Tue, 15 Feb 2022 22:08:09 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range In-Reply-To: References: Message-ID: On Wed, 9 Feb 2022 22:37:45 GMT, Naoto Sato wrote: > Fixing an issue in `CompactNumberFormat` which was caused by BigDecimal.divide() that incremented the number in the resulting format string. Also fixing some typos by taking this opportunity. Marked as reviewed by joehw (Reviewer). test/jdk/java/text/Format/CompactNumberFormat/TestCompactPatternsValidity.java line 106: > 104: {COMPACT_PATTERN8, List.of(new BigInteger("223565686837667632"), new BigDecimal("12322456774334.89766"), 30000, 3456.78, > 105: new BigInteger("999999999999"), new BigDecimal("999999999999.0"), 999_999), > 106: List.of("223566T", "12T", "30K", "3K", "1T", "1T", "1M")}, The case where 999_999_999 was formatted to 1000 million and now 1 billion may be added too. ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From naoto at openjdk.java.net Tue Feb 15 22:31:47 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Tue, 15 Feb 2022 22:31:47 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2] In-Reply-To: References: Message-ID: > Fixing an issue in `CompactNumberFormat` which was caused by BigDecimal.divide() that incremented the number in the resulting format string. Also fixing some typos by taking this opportunity. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Addressing review comments ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7412/files - new: https://git.openjdk.java.net/jdk/pull/7412/files/8ea8ccfa..f6c86254 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7412&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7412&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.java.net/jdk/pull/7412.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7412/head:pull/7412 PR: https://git.openjdk.java.net/jdk/pull/7412 From naoto at openjdk.java.net Tue Feb 15 22:35:10 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Tue, 15 Feb 2022 22:35:10 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2] In-Reply-To: References: Message-ID: <5xTUS8fRHxoHUfefD05WjIZflnDSuE1KrHEJO_W3FFE=.130182ac-1836-4993-b19f-4e7e7f10131c@github.com> On Tue, 15 Feb 2022 21:59:42 GMT, Joe Wang wrote: >> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: >> >> Addressing review comments > > src/java.base/share/classes/java/text/CompactNumberFormat.java line 595: > >> 593: divisor = (Long) divisors.get(++compactDataIndex); >> 594: iPart = getIntegerPart(number, divisor); >> 595: } > > This and the few lines surrounding it were duplicated. Might be worth considering consolidation. Right. In fact, I tried to converge them but ended up not to, as there are slight differences for each number type. > test/jdk/java/text/Format/CompactNumberFormat/TestCompactPatternsValidity.java line 106: > >> 104: {COMPACT_PATTERN8, List.of(new BigInteger("223565686837667632"), new BigDecimal("12322456774334.89766"), 30000, 3456.78, >> 105: new BigInteger("999999999999"), new BigDecimal("999999999999.0"), 999_999), >> 106: List.of("223566T", "12T", "30K", "3K", "1T", "1T", "1M")}, > > The case where 999_999_999 was formatted to 1000 million and now 1 billion may be added too. Sure, added the 1 bil test case. ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From joehw at openjdk.java.net Tue Feb 15 23:53:08 2022 From: joehw at openjdk.java.net (Joe Wang) Date: Tue, 15 Feb 2022 23:53:08 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2] In-Reply-To: References: Message-ID: <8V-YdqscV09fOGsDzLoflH9atRjJ8qsH6MKS9s8jVT0=.a1d97983-0a7a-43f0-9c1e-8999f176ae1b@github.com> On Tue, 15 Feb 2022 22:31:47 GMT, Naoto Sato wrote: >> Fixing an issue in `CompactNumberFormat` which was caused by BigDecimal.divide() that incremented the number in the resulting format string. Also fixing some typos by taking this opportunity. > > Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: > > Addressing review comments Marked as reviewed by joehw (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From joehw at openjdk.java.net Tue Feb 15 23:53:08 2022 From: joehw at openjdk.java.net (Joe Wang) Date: Tue, 15 Feb 2022 23:53:08 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2] In-Reply-To: <5xTUS8fRHxoHUfefD05WjIZflnDSuE1KrHEJO_W3FFE=.130182ac-1836-4993-b19f-4e7e7f10131c@github.com> References: <5xTUS8fRHxoHUfefD05WjIZflnDSuE1KrHEJO_W3FFE=.130182ac-1836-4993-b19f-4e7e7f10131c@github.com> Message-ID: On Tue, 15 Feb 2022 22:31:28 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/text/CompactNumberFormat.java line 595: >> >>> 593: divisor = (Long) divisors.get(++compactDataIndex); >>> 594: iPart = getIntegerPart(number, divisor); >>> 595: } >> >> This and the few lines surrounding it were duplicated. Might be worth considering consolidation. > > Right. In fact, I tried to converge them but ended up not to, as there are slight differences for each number type. Yeah, that's fine. ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From naoto at openjdk.java.net Wed Feb 16 16:59:12 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Wed, 16 Feb 2022 16:59:12 GMT Subject: Integrated: 8176706: Additional Date-Time Formats In-Reply-To: References: Message-ID: On Thu, 3 Feb 2022 23:29:54 GMT, Naoto Sato wrote: > Following the prior discussion [1], here is the PR for the subject enhancement. CSR has also been updated according to the suggestion. > > [1] https://mail.openjdk.java.net/pipermail/core-libs-dev/2022-January/085175.html This pull request has now been integrated. Changeset: 9b74c3f2 Author: Naoto Sato URL: https://git.openjdk.java.net/jdk/commit/9b74c3f2e74a4efdec1c1488e96ab5939a408df0 Stats: 821 lines in 12 files changed: 725 ins; 12 del; 84 mod 8176706: Additional Date-Time Formats Reviewed-by: joehw, rriggs ------------- PR: https://git.openjdk.java.net/jdk/pull/7340 From naoto at openjdk.java.net Thu Feb 17 19:07:13 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Thu, 17 Feb 2022 19:07:13 GMT Subject: Integrated: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range In-Reply-To: References: Message-ID: On Wed, 9 Feb 2022 22:37:45 GMT, Naoto Sato wrote: > Fixing an issue in `CompactNumberFormat` which was caused by BigDecimal.divide() that incremented the number in the resulting format string. Also fixing some typos by taking this opportunity. This pull request has now been integrated. Changeset: 12927765 Author: Naoto Sato URL: https://git.openjdk.java.net/jdk/commit/129277653e51e9b1387ecee279a6ccee9199c8ff Stats: 42 lines in 2 files changed: 31 ins; 0 del; 11 mod 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range Reviewed-by: joehw ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From duke at openjdk.java.net Thu Feb 17 20:18:11 2022 From: duke at openjdk.java.net (Selikoff) Date: Thu, 17 Feb 2022 20:18:11 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2] In-Reply-To: References: Message-ID: On Tue, 15 Feb 2022 22:31:47 GMT, Naoto Sato wrote: >> Fixing an issue in `CompactNumberFormat` which was caused by BigDecimal.divide() that incremented the number in the resulting format string. Also fixing some typos by taking this opportunity. > > Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: > > Addressing review comments Can I please be added as a Reviewer? I was the one who originally reported this bug on 2/7/2022 via Oracle's web form. ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From naoto at openjdk.java.net Thu Feb 17 20:55:12 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Thu, 17 Feb 2022 20:55:12 GMT Subject: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2] In-Reply-To: References: Message-ID: On Thu, 17 Feb 2022 07:32:36 GMT, Selikoff wrote: > Can I please be added as a Reviewer? I was the one who originally reported this bug on 2/7/2022 via Oracle's web form. To be listed as a Reviewer, you will need to be a Reviewer of the JDK Project (https://openjdk.java.net/bylaws#reviewer). Instead, I tried to add you as a contributor in this PR, but failed as I wasn't aware `/contributor` command does not work after the PR is closed. Sorry. ------------- PR: https://git.openjdk.java.net/jdk/pull/7412 From jpai at openjdk.java.net Mon Feb 21 12:49:24 2022 From: jpai at openjdk.java.net (Jaikiran Pai) Date: Mon, 21 Feb 2022 12:49:24 GMT Subject: RFR: 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle Message-ID: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> Can I please get a review of this trivial change to the javadoc of `DateTimeFormatter.getDecimalStyle()` method which fixes the typo noted in https://bugs.openjdk.java.net/browse/JDK-8282190? ------------- Commit messages: - 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle Changes: https://git.openjdk.java.net/jdk/pull/7556/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7556&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8282190 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/7556.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7556/head:pull/7556 PR: https://git.openjdk.java.net/jdk/pull/7556 From dfuchs at openjdk.java.net Mon Feb 21 14:05:52 2022 From: dfuchs at openjdk.java.net (Daniel Fuchs) Date: Mon, 21 Feb 2022 14:05:52 GMT Subject: RFR: 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle In-Reply-To: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> References: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> Message-ID: On Mon, 21 Feb 2022 12:42:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial change to the javadoc of `DateTimeFormatter.getDecimalStyle()` method which fixes the typo noted in https://bugs.openjdk.java.net/browse/JDK-8282190? LGTM ------------- Marked as reviewed by dfuchs (Reviewer). PR: https://git.openjdk.java.net/jdk/pull/7556 From rriggs at openjdk.java.net Mon Feb 21 15:40:55 2022 From: rriggs at openjdk.java.net (Roger Riggs) Date: Mon, 21 Feb 2022 15:40:55 GMT Subject: RFR: 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle In-Reply-To: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> References: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> Message-ID: <1NUZmCcwVgYuQL-c3ONQXOrOezBXG0uMSTBebyyka_g=.a8055a32-000b-4ff7-a5c8-7509a1c588c1@github.com> On Mon, 21 Feb 2022 12:42:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial change to the javadoc of `DateTimeFormatter.getDecimalStyle()` method which fixes the typo noted in https://bugs.openjdk.java.net/browse/JDK-8282190? Marked as reviewed by rriggs (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/7556 From lancea at openjdk.java.net Mon Feb 21 17:38:50 2022 From: lancea at openjdk.java.net (Lance Andersen) Date: Mon, 21 Feb 2022 17:38:50 GMT Subject: RFR: 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle In-Reply-To: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> References: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> Message-ID: On Mon, 21 Feb 2022 12:42:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial change to the javadoc of `DateTimeFormatter.getDecimalStyle()` method which fixes the typo noted in https://bugs.openjdk.java.net/browse/JDK-8282190? Marked as reviewed by lancea (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/7556 From iris at openjdk.java.net Mon Feb 21 19:28:46 2022 From: iris at openjdk.java.net (Iris Clark) Date: Mon, 21 Feb 2022 19:28:46 GMT Subject: RFR: 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle In-Reply-To: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> References: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> Message-ID: On Mon, 21 Feb 2022 12:42:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial change to the javadoc of `DateTimeFormatter.getDecimalStyle()` method which fixes the typo noted in https://bugs.openjdk.java.net/browse/JDK-8282190? Marked as reviewed by iris (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/7556 From jpai at openjdk.java.net Tue Feb 22 01:43:46 2022 From: jpai at openjdk.java.net (Jaikiran Pai) Date: Tue, 22 Feb 2022 01:43:46 GMT Subject: RFR: 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle In-Reply-To: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> References: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> Message-ID: <_pDQWn9bsr3-EVjgXXrF4tDyYHkTx4Wt6svq7Re33oc=.d41c1b56-e017-4684-b87e-b7930673706f@github.com> On Mon, 21 Feb 2022 12:42:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial change to the javadoc of `DateTimeFormatter.getDecimalStyle()` method which fixes the typo noted in https://bugs.openjdk.java.net/browse/JDK-8282190? Thank you everyone for the reviews. ------------- PR: https://git.openjdk.java.net/jdk/pull/7556 From jpai at openjdk.java.net Tue Feb 22 01:43:46 2022 From: jpai at openjdk.java.net (Jaikiran Pai) Date: Tue, 22 Feb 2022 01:43:46 GMT Subject: Integrated: 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle In-Reply-To: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> References: <85AxKwDuPDS5-P0NHaF5ywUEwE3tbEiEcLtAgjAhjVI=.d7fd261a-09b6-4fa3-8e94-d5d7ea2aad3b@github.com> Message-ID: On Mon, 21 Feb 2022 12:42:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial change to the javadoc of `DateTimeFormatter.getDecimalStyle()` method which fixes the typo noted in https://bugs.openjdk.java.net/browse/JDK-8282190? This pull request has now been integrated. Changeset: e0b49629 Author: Jaikiran Pai URL: https://git.openjdk.java.net/jdk/commit/e0b49629e95c98aabe8b75ec2f7528e7fb6dcffc Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle Reviewed-by: dfuchs, rriggs, lancea, iris ------------- PR: https://git.openjdk.java.net/jdk/pull/7556 From naoto at openjdk.java.net Mon Feb 28 23:23:33 2022 From: naoto at openjdk.java.net (Naoto Sato) Date: Mon, 28 Feb 2022 23:23:33 GMT Subject: RFR: 8282081: java.time.DateTimeFormatter: wrong definition of symbol F Message-ID: <5ITr32FQZzX5oQf2jgdAVR9ZVkAw7OXNwVop8SjPypQ=.a031176f-e25e-4253-870d-66828b535de0@github.com> Fixing the definition and implementation of the pattern symbol `F`. Although it is an incompatible change, I believe it is worth the fix. For that, a CSR has been drafted. ------------- Commit messages: - 8282081: java.time.DateTimeFormatter: wrong definition of symbol F Changes: https://git.openjdk.java.net/jdk/pull/7640/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7640&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8282081 Stats: 5 lines in 3 files changed: 0 ins; 0 del; 5 mod Patch: https://git.openjdk.java.net/jdk/pull/7640.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7640/head:pull/7640 PR: https://git.openjdk.java.net/jdk/pull/7640