Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java/util/Properties/StoreReproducibilityTest.java fails IST Date comparison on Java 19 #3979

Closed
karianna opened this issue Sep 22, 2022 · 2 comments
Labels

Comments

@karianna
Copy link
Contributor

karianna commented Sep 22, 2022

Possibly a machine TZ setup problem (machine reported Dublin/Europe TZ) but not sure. TRSS Test Output and TRSS Test Output

Execution failed: `main' threw exception: java.lang.RuntimeException: Expected date comment Wed Sep 21 15:38:13 IST 2022 to be after Wed Sep 21 15:38:12 IST 2022 but was Wed Sep 21 11:08:13 IST 2022

Could be related to recent Java 19 patch in this area

[2022-09-21T14:38:25.133Z] stdout: [Current default timezone is sun.util.calendar.ZoneInfo[id="Europe/Dublin",offset=0,dstSavings=3600000,useDaylight=true,transitions=227,lastRule=java.util.SimpleTimeZone[id=Europe/Dublin,offset=0,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]]
[2022-09-21T14:38:25.133Z] ];
[2022-09-21T14:38:25.133Z] stderr: []
[2022-09-21T14:38:25.133Z] exitValue = 0
[2022-09-21T14:38:25.133Z]
[2022-09-21T14:38:25.133Z] java.lang.RuntimeException: Expected date comment Wed Sep 21 15:38:13 IST 2022 to be after Wed Sep 21 15:38:12 IST 2022 but was Wed Sep 21 11:08:13 IST 2022
[2022-09-21T14:38:25.133Z] at StoreReproducibilityTest.assertCurrentDate(StoreReproducibilityTest.java:434)
[2022-09-21T14:38:25.133Z] at StoreReproducibilityTest.testEmptySysPropValue(StoreReproducibilityTest.java:256)
[2022-09-21T14:38:25.133Z] at StoreReproducibilityTest.main(StoreReproducibilityTest.java:71)
[2022-09-21T14:38:25.133Z] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2022-09-21T14:38:25.133Z] at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2022-09-21T14:38:25.133Z] at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
[2022-09-21T14:38:25.133Z] at java.base/java.lang.Thread.run(Thread.java:1589)
[2022-09-21T14:38:25.133Z]
[2022-09-21T14:38:25.133Z] JavaTest Message: Test threw exception: java.lang.RuntimeException
[2022-09-21T14:38:25.133Z] JavaTest Message: shutting down test

@karianna karianna added the bug label Sep 22, 2022
@karianna karianna changed the title java/util/Properties/StoreReproducibilityTest.java fails regularly on Java 19 java/util/Properties/StoreReproducibilityTest.java fails IST Date comparison on Java 19 Sep 22, 2022
@jiekang
Copy link
Contributor

jiekang commented Nov 8, 2023

This has been fixed via:

https://bugs.openjdk.org/browse/JDK-8316540
openjdk/jdk@f7578e8

@smlambert
Copy link
Contributor

As per #3979 (comment), closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants