Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14662

Calendar testing for marshalling in clustering is wrong

XMLWordPrintable

    • Undefined

      When running the test org.wildfly.clustering.marshalling.spi.ExternalizerUtilTestCase we have the following error:

      testCalendar(org.wildfly.clustering.marshalling.spi.ExternalizerUtilTestCase) Time elapsed: 0.027 s <<< ERROR!
      java.lang.IllegalArgumentException: MONTH: 3 -> 4
      at java.base/java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2826)
      at java.base/java.util.Calendar.updateTime(Calendar.java:3428)
      at java.base/java.util.Calendar.complete(Calendar.java:2298)
      at java.base/java.util.Calendar$Builder.build(Calendar.java:1548)
      at org.wildfly.clustering.marshalling.AbstractUtilTestCase.testCalendar(AbstractUtilTestCase.java:115)

       

      This is due to commit 078f407 Improve test coverage of enum set/map. which set the month at the MonthValue while calendar month field is 0 based .

            ehugonne1@redhat.com Emmanuel Hugonnet
            ehugonne1@redhat.com Emmanuel Hugonnet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: