Hello from TimeJumpWithWait! WaitWorker: 'Worker-0' is running. WaitWorker: 'Worker-1' is running. INFO: setting time forward to: INFO: MMDDhhmmCCYY INFO: 010102042023 INFO: time is now: java.util.GregorianCalendar[time=1672567440000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="PST8PDT",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=149,lastRule=java.util.SimpleTimeZone[id=PST8PDT,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2023,MONTH=0,WEEK_OF_YEAR=1,WEEK_OF_MONTH=1,DAY_OF_MONTH=1,DAY_OF_YEAR=1,DAY_OF_WEEK=1,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=2,HOUR_OF_DAY=2,MINUTE=4,SECOND=0,MILLISECOND=0,ZONE_OFFSET=-28800000,DST_OFFSET=0] INFO: setting time backward to: INFO: MMDDhhmmCCYY INFO: 010102042018 INFO: time is now: java.util.GregorianCalendar[time=1514801040000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="PST8PDT",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=149,lastRule=java.util.SimpleTimeZone[id=PST8PDT,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=0,WEEK_OF_YEAR=1,WEEK_OF_MONTH=1,DAY_OF_MONTH=1,DAY_OF_YEAR=1,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=2,HOUR_OF_DAY=2,MINUTE=4,SECOND=0,MILLISECOND=0,ZONE_OFFSET=-28800000,DST_OFFSET=0] millis 10000 newtime 5436267748928923 prevtime 5436267748927268 parking millis 10000 park ret millis 10000 newtime 5436267748928923 prevtime 5436267748928923 millis 0 newtime 5436277749075609 prevtime 5436267748928923 Leaving returning OS_OK millis 10000 newtime 5436277749095134 prevtime 5436277749093371 parking millis 10000 park ret millis 10000 newtime 5436277749095134 prevtime 5436277749095134 millis 0 newtime 5436287749270876 prevtime 5436277749095134 Leaving returning OS_OK millis 10000 newtime 5436287749293049 prevtime 5436287749291540 parking millis 10000 park ret millis 10000 newtime 5436287749293049 prevtime 5436287749293049 millis 0 newtime 5436297749486707 prevtime 5436287749293049 Leaving returning OS_OK INFO: Worker-0 is still waiting. INFO: setting time forward to: INFO: MMDDhhmmCCYY INFO: 010102042023 INFO: time is now: java.util.GregorianCalendar[time=1672567440000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="PST8PDT",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=149,lastRule=java.util.SimpleTimeZone[id=PST8PDT,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2023,MONTH=0,WEEK_OF_YEAR=1,WEEK_OF_MONTH=1,DAY_OF_MONTH=1,DAY_OF_YEAR=1,DAY_OF_WEEK=1,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=2,HOUR_OF_DAY=2,MINUTE=4,SECOND=0,MILLISECOND=0,ZONE_OFFSET=-28800000,DST_OFFSET=0] millis 11000 newtime 5436297752275513 prevtime 5436297752273645 parking millis 11000 WaitWorker: 'Worker-0' is done. park ret millis 11000 newtime 5436297752275513 prevtime 5436297752275513 millis 0 newtime 5436308752413646 prevtime 5436297752275513 Leaving returning OS_OK INFO: Worker-0 woke up after time was jumped forward again. INFO: setting time backward to: INFO: MMDDhhmmCCYY INFO: 010102042018 INFO: time is now: java.util.GregorianCalendar[time=1514801040000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="PST8PDT",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=149,lastRule=java.util.SimpleTimeZone[id=PST8PDT,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=0,WEEK_OF_YEAR=1,WEEK_OF_MONTH=1,DAY_OF_MONTH=1,DAY_OF_YEAR=1,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=2,HOUR_OF_DAY=2,MINUTE=4,SECOND=0,MILLISECOND=0,ZONE_OFFSET=-28800000,DST_OFFSET=0] WaitWorker: 'Worker-1' is done. Exception in thread "main" java.lang.RuntimeException: FAIL: wait() did not work as expected. at TimeJumpWithWait.main(TimeJumpWithWait.java:94)