Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
3.0
-
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
- is related to
-
LANG-1337 Fix test failures in IBM JDK 8 for ToStringBuilderTest
- Closed