--- old/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java 2017-11-22 10:51:13.904176391 -0800 +++ new/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java 2017-11-22 10:51:13.562169851 -0800 @@ -2162,12 +2162,6 @@ * This will create a formatter with the {@linkplain Locale#getDefault(Locale.Category) default FORMAT locale}. * Numbers will be printed and parsed using the standard DecimalStyle. * The resolver style will be {@link ResolverStyle#SMART SMART}. - * If the default locale contains "ca" (calendar), "rg" (region override) - * and/or "tz" (timezone) - * Unicode extensions, - * the chronology and/or the zone are overridden. If both "ca" and "rg" are - * specified, the chronology from the "ca" extension supersedes the implicit one - * from the "rg" extension. *

* Calling this method will end any open optional sections by repeatedly * calling {@link #optionalEnd()} before creating the formatter. @@ -2188,12 +2182,6 @@ * This will create a formatter with the specified locale. * Numbers will be printed and parsed using the standard DecimalStyle. * The resolver style will be {@link ResolverStyle#SMART SMART}. - * If the specified locale contains "ca" (calendar), "rg" (region override) - * and/or "tz" (timezone) - * Unicode extensions, - * the chronology and/or the zone are overridden. If both "ca" and "rg" are - * specified, the chronology from the "ca" extension supersedes the implicit one - * from the "rg" extension. *

* Calling this method will end any open optional sections by repeatedly * calling {@link #optionalEnd()} before creating the formatter. @@ -2232,18 +2220,8 @@ optionalEnd(); } CompositePrinterParser pp = new CompositePrinterParser(printerParsers, false); - - // Check for chronology/timezone in locale object - Chronology c = locale.getUnicodeLocaleType("ca") != null ? - Chronology.ofLocale(locale) : chrono; - String tzType = locale.getUnicodeLocaleType("tz"); - ZoneId z = tzType != null ? - TimeZoneNameUtility.convertLDMLShortID(tzType) - .map(ZoneId::of) - .orElse(null) : - null; return new DateTimeFormatter(pp, locale, DecimalStyle.STANDARD, - resolverStyle, null, c, z); + resolverStyle, null, chrono, null); } //-----------------------------------------------------------------------