We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc5fca9 commit d149dcdCopy full SHA for d149dcd
src/java.base/share/classes/java/util/Calendar.java
@@ -2728,7 +2728,9 @@ public boolean equals(Object obj) {
2728
lenient == that.lenient &&
2729
firstDayOfWeek == that.firstDayOfWeek &&
2730
minimalDaysInFirstWeek == that.minimalDaysInFirstWeek &&
2731
- zone.equals(that.zone);
+ (zone instanceof ZoneInfo ?
2732
+ zone.equals(that.zone) :
2733
+ zone.equals(that.getTimeZone()));
2734
} catch (Exception e) {
2735
// Note: GregorianCalendar.computeTime throws
2736
// IllegalArgumentException if the ERA value is invalid
0 commit comments