[
https://issues.apache.org/jira/browse/LANG-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080068#comment-13080068
]
Joerg Schaible commented on LANG-727:
-------------------------------------
java.vendor is the same. Actually we don't have to take this issue too serious.
The implementation can handle the ArrayList also for IBM JDK 6. The internals
are different but it provides proper information. It's the test that is flaky
with its assumptions. Therefore I'd add a comment to state the fact that the
result depends on the implementation details of ArrayList that is
vendor/version specific. IBM JDK 6 is known for the difference and is currently
the only known one with different implementation.
> ToStringBuilderTest.testReflectionHierarchyArrayList fails with IBM JDK 6
> -------------------------------------------------------------------------
>
> Key: LANG-727
> URL: https://issues.apache.org/jira/browse/LANG-727
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.builder.*
> Affects Versions: 3.0
> Reporter: Joerg Schaible
> Priority: Trivial
> Fix For: 3.0.2
>
>
> The unit test fails when running with IBM JDK 6:
> {noformat}
> 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]>
> {noformat}
> Actually the test is wrong, because it makes wrong assumptions about the
> implementation of ArrayList in the runtime.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira