Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8297316

[TestBug] LocalDateTimeStringConverterTest.testChronologyConsistency fails with JDK 20

XMLWordPrintable

    • b15

      The test fails with JDK20 on all platforms with below error:
      ---------------------------------------------------------------------------
      LocalDateTimeStringConverterTest > [0] > test.javafx.util.converter.LocalDateTimeStringConverterTest.testChronologyConsistency[0] FAILED
          org.junit.ComparisonFailure: expected:<..., 60 Shōwa, 12:34:56[ ]PM> but was:<..., 60 Shōwa, 12:34:56[ ]PM>
              at org.junit.Assert.assertEquals(Assert.java:117)
              at org.junit.Assert.assertEquals(Assert.java:146)
              at test.javafx.util.converter.LocalDateTimeStringConverterTest.testChronologyConsistency(LocalDateTimeStringConverterTest.java:160)

      LocalDateTimeStringConverterTest > [1] > test.javafx.util.converter.LocalDateTimeStringConverterTest.testChronologyConsistency[1] FAILED
          org.junit.ComparisonFailure: expected:<..., 60 Shōwa, 12:34:56[ ]PM> but was:<..., 60 Shōwa, 12:34:56[ ]PM>
              at org.junit.Assert.assertEquals(Assert.java:117)
              at org.junit.Assert.assertEquals(Assert.java:146)
              at test.javafx.util.converter.LocalDateTimeStringConverterTest.testChronologyConsistency(LocalDateTimeStringConverterTest.java:160)

      LocalDateTimeStringConverterTest > [2] > test.javafx.util.converter.LocalDateTimeStringConverterTest.testChronologyConsistency[2] FAILED
          org.junit.ComparisonFailure: expected:<..., 60 Shōwa, 12:34:56[ ]PM> but was:<..., 60 Shōwa, 12:34:56[ ]PM>
              at org.junit.Assert.assertEquals(Assert.java:117)
              at org.junit.Assert.assertEquals(Assert.java:146)
              at test.javafx.util.converter.LocalDateTimeStringConverterTest.testChronologyConsistency(LocalDateTimeStringConverterTest.java:160)
      ---------------------------------------------------------------------------

      It will be a must fix before updating boot jdk to 20 OR
      before official release of OpenJFX20.(which would be expected to be compatible with JDK20)

      At first look it seems like a test bug: There may be a API change in JDK20 to which jfx should adapt to.

            arapte Ambarish Rapte
            arapte Ambarish Rapte
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: