Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-21402

Calendar testing for marshalling in clustering is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.0.GA
    • None
    • Clustering, Test Suite
    • None

      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 .

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

              Created:
              Updated:
              Resolved: