commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-318) HashCodeBuilderTest and ToStringBuilderTest fail with IBM JDK 1.4.2
Date Sat, 17 Feb 2007 09:02:00 GMT

     [ https://issues.apache.org/jira/browse/LANG-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell closed LANG-318.
------------------------------

    Resolution: Won't Fix

I don't see any reason to have the unit tests not run for this - makes them more honest and
we don't need the IBM 1.4.2 JVM to develop with. Marking as WONTFIX as it's a JVM bug (they
fixed in 1.5 so presuming it's considered so).

> HashCodeBuilderTest and ToStringBuilderTest fail with IBM JDK 1.4.2
> -------------------------------------------------------------------
>
>                 Key: LANG-318
>                 URL: https://issues.apache.org/jira/browse/LANG-318
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Gentoo Linux, IBM JDK 1.4.2_5
>            Reporter: Joerg Schaible
>            Priority: Minor
>             Fix For: Known Issue
>
>
> The IBM JDK 1.4.2 reports the declared fields of a class in reverse declaration order.
The tests are affected by this:
> {noformat}
> Testsuite: org.apache.commons.lang.builder.BuilderTestSuite
> Tests run: 263, Failures: 8, Errors: 0, Time elapsed: 0,451 sec
> Testcase:
> testReflectionHierarchyHashCode(org.apache.commons.lang.builder.HashCodeBuilderTest):
> FAILED
> expected:<11785967> but was:<1276487>
> junit.framework.AssertionFailedError: expected:<11785967> but was:<1276487>
>         at
> org.apache.commons.lang.builder.HashCodeBuilderTest.testReflectionHierarchyHashCode(HashCodeBuilderTest.java:166)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> Testcase:
> testReflectionHashCodeExcludeFields(org.apache.commons.lang.builder.HashCodeBuilderTest):
> FAILED
> expected:<862547> but was:<865283>
> junit.framework.AssertionFailedError: expected:<862547> but was:<865283>
>         at
> org.apache.commons.lang.builder.HashCodeBuilderTest.testReflectionHashCodeExcludeFields(HashCodeBuilderTest.java:480)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> Testcase:
> testReflectionHierarchyArrayList(org.apache.commons.lang.builder.ToStringBuilderTest):
> FAILED
> expected:<...elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>},size=0...>
> but
> was:<...size=0,elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>}...>
> junit.framework.ComparisonFailure:
> expected:<...elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>},size=0...>
> but
> was:<...size=0,elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>}...>
>         at
> org.apache.commons.lang.builder.ToStringBuilderTest.testReflectionHierarchyArrayList(ToStringBuilderTest.java:327)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> Testcase:
> testReflectionHierarchy(org.apache.commons.lang.builder.ToStringBuilderTest):
> FAILED
> expected:<...a=a,transientA=t...> but was:<...transientA=t,a=a...>
> junit.framework.ComparisonFailure: expected:<...a=a,transientA=t...> but
> was:<...transientA=t,a=a...>
>         at
> org.apache.commons.lang.builder.ToStringBuilderTest.testReflectionHierarchy(ToStringBuilderTest.java:338)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> Testcase:
> testSelfInstanceTwoVarsReflectionObjectCycle(org.apache.commons.lang.builder.ToStringBuilderTest):
> FAILED
> expected:<...typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad,otherType=The
> Other Type...> but was:<...otherType=The Other
> Type,typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad...>
> junit.framework.ComparisonFailure:
> expected:<...typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad,otherType=The
> Other Type...> but was:<...otherType=The Other
> Type,typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad...>
>         at
> org.apache.commons.lang.builder.ToStringBuilderTest.testSelfInstanceTwoVarsReflectionObjectCycle(ToStringBuilderTest.java:543)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> Testcase:
> testSimpleReflectionStatics(org.apache.commons.lang.builder.ToStringBuilderTest):
> FAILED
> expected:<...String=staticString,staticInt=12345...> but
> was:<...Int=12345,staticString=staticString...>
> junit.framework.ComparisonFailure:
> expected:<...String=staticString,staticInt=12345...> but
> was:<...Int=12345,staticString=staticString...>
>         at
> org.apache.commons.lang.builder.ToStringBuilderTest.testSimpleReflectionStatics(ToStringBuilderTest.java:859)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> Testcase:
> testReflectionStatics(org.apache.commons.lang.builder.ToStringBuilderTest):
> FAILED
> expected:<...staticString=staticString,staticInt=12345,instanceString=instanceString,instanceInt=67890...>
> but
> was:<...instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString...>
> junit.framework.ComparisonFailure:
> expected:<...staticString=staticString,staticInt=12345,instanceString=instanceString,instanceInt=67890...>
> but
> was:<...instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString...>
>         at
> org.apache.commons.lang.builder.ToStringBuilderTest.testReflectionStatics(ToStringBuilderTest.java:878)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> Testcase:
> testInheritedReflectionStatics(org.apache.commons.lang.builder.ToStringBuilderTest):
> FAILED
> expected:<...String2=staticString2,staticInt2=67890...> but
> was:<...Int2=67890,staticString2=staticString2...>
> junit.framework.ComparisonFailure:
> expected:<...String2=staticString2,staticInt2=67890...> but
> was:<...Int2=67890,staticString2=staticString2...>
>         at
> org.apache.commons.lang.builder.ToStringBuilderTest.testInheritedReflectionStatics(ToStringBuilderTest.java:897)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message