Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-727

ToStringBuilderTest.testReflectionHierarchyArrayList fails with IBM JDK 6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • lang.builder.*
    • None

    Description

      The unit test fails when running with IBM JDK 6:

      Failed tests: 
        testReflectionHierarchyArrayList(org.apache.commons.lang3.builder.ToStringBuilderTest): null 
      expected:<....ArrayList@115b115b[[elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,null>,null>,null>},size=0],modCount=0]>
      but was:<....ArrayList@115b115b[[firstIndex=0,lastIndex=0,array={<null>,<null>,<null>,<null>,<null>,<null>,<null>,null>,null>,null>}],modCount=0]>
      

      Actually the test is wrong, because it makes wrong assumptions about the implementation of ArrayList in the runtime.

      Attachments

        Issue Links

          Activity

            People

              joehni Joerg Schaible
              joehni Joerg Schaible
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: