mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8245407: Enhance zoning of times
Reviewed-by: rriggs, rhalade, skoivu
This commit is contained in:
parent
fc5fca9ade
commit
d149dcdbd5
1 changed files with 3 additions and 1 deletions
|
@ -2728,7 +2728,9 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
lenient == that.lenient &&
|
||||
firstDayOfWeek == that.firstDayOfWeek &&
|
||||
minimalDaysInFirstWeek == that.minimalDaysInFirstWeek &&
|
||||
zone.equals(that.zone);
|
||||
(zone instanceof ZoneInfo ?
|
||||
zone.equals(that.zone) :
|
||||
zone.equals(that.getTimeZone()));
|
||||
} catch (Exception e) {
|
||||
// Note: GregorianCalendar.computeTime throws
|
||||
// IllegalArgumentException if the ERA value is invalid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue