Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-938 Build fails with test failures when building with JDK 8
  3. LANG-942

Test failure in FastDateParserTest and FastDateFormat_ParserTest when building with JDK8

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.2.1
    • lang.time.*
    • None
    • JDK8

    Description

      The following failure is thrown when using JDK 8:

      -------------------------------------------------------------------------------
      Test set: org.apache.commons.lang3.time.FastDateFormat_ParserTest
      -------------------------------------------------------------------------------
      Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.315 sec <<< FAILURE! - in org.apache.commons.lang3.time.FastDateFormat_ParserTest
      testParseZone(org.apache.commons.lang3.time.FastDateFormat_ParserTest)  Time elapsed: 0.005 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<Thu Jul 10 22:33:20 CEST 2003> but was:<Thu Jul 10 23:33:20 CEST 2003>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at org.apache.commons.lang3.time.FastDateParserTest.testParseZone(FastDateParserTest.java:119)
      	[...]
      

      It is caused by the following assertion in FastDateParserTest (from which FastDateFormat_ParserTest inherits):

      assertEquals(cal.getTime(), fdf.parse("2003-07-10T16:33:20.000 Eastern Daylight Time"));
      

      FastDateParserTest fails with the same error.

      Attachments

        Issue Links

          Activity

            People

              britter Benedikt Ritter
              britter Benedikt Ritter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: