java.lang.AssertionError: Eastern European Time Calendar.HOUR_OF_DAY java.util.GregorianCalendar[time=1406844000000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="ART",offset=7200000,dstSavings=3600000,useDaylight=true,transitions=184,lastRule=java.util.SimpleTimeZone[id=ART,offset=7200000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=3,startDay=-1,startDayOfWeek=6,startTime=0,startTimeMode=1,endMode=2,endMonth=8,endDay=-1,endDayOfWeek=5,endTime=86400000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2014,MONTH=7,WEEK_OF_YEAR=31,WEEK_OF_MONTH=1,DAY_OF_MONTH=1,DAY_OF_YEAR=213,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=1,HOUR_OF_DAY=1,MINUTE=0,SECOND=0,MILLISECOND=0,ZONE_OFFSET=7200000,DST_OFFSET=3600000] expected:<0> but was:<1>
Looks like a bug in the JDK: sun.util.calendar.ZoneInfo[id="ART",offset=7200000,dstSavings=3600000,useDaylight=true,transitions=184,lastRule=java.util.SimpleTimeZone[id=ART,offset=7200000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=3,startDay=-1,startDayOfWeek=6,startTime=0,startTimeMode=1,endMode=2,endMonth=8,endDay=-1,endDayOfWeek=5,endTime=86400000,endTimeMode=0]] Eastern European Time $ java -version java version "1.7.0_65" OpenJDK Runtime Environment (fedora-2.5.1.3.fc20-x86_64 u65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
*** Bug 1141120 has been marked as a duplicate of this bug. ***
Seen in 6.4.0.CR1
See also : https://issues.jboss.org/browse/WFLY-2881 and https://issues.jboss.org/browse/WFLY-3766
Seen in 6.4.0.CR2
The bug is actual in 6.4.x. It could be related with the change of CET to CEST.
There should be some issue with the set method of Calendar class in open jdk.
From documentation : add(f, delta) adds delta to field f. This is equivalent to calling set(f, get(f) + delta). So, https://github.com/wildfly/wildfly/pull/6614/files can be considered a workaround.
With oracle jdk 7u65 works fine, but with oracle 7u80 the issue is there.
Resolved in BZ1213875 : https://bugzilla.redhat.com/show_bug.cgi?id=1213875 *** This bug has been marked as a duplicate of bug 1213875 ***
Panagiotis Sotiropoulos <psotirop> updated the status of jira WFLY-2881 to Closed
Panagiotis Sotiropoulos <psotirop> updated the status of jira JBQA-10939 to Closed