commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-946) ConstantInitializerTest fails when building with IBM JDK 7
Date Fri, 31 Jan 2014 13:42:08 GMT

    [ https://issues.apache.org/jira/browse/LANG-946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13887756#comment-13887756
] 

Benedikt Ritter commented on LANG-946:
--------------------------------------

The problem seems to be, that the IBM JDK returns a negative number as result of the {{Integer.toHexString(hashCode())}}
of the default toString implementation. Changing the pattern used in the test case to allow
an optional dash should fix this.

> ConstantInitializerTest fails when building with IBM JDK 7
> ----------------------------------------------------------
>
>                 Key: LANG-946
>                 URL: https://issues.apache.org/jira/browse/LANG-946
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.concurrent.*
>    Affects Versions: 3.2.1
>         Environment: IBM JDK 7
>            Reporter: Benedikt Ritter
>            Assignee: Benedikt Ritter
>             Fix For: 3.3
>
>
> Found by Jörg Schaible during the vote for 3.2.1 RC1 [1]:
> {code}
> ========================== %< ====================
> Failed tests:
>   ConstantInitializerTest.testToString:122 Wrong string:
> ConstantInitializer@-669671219 [ object = 42 ]
> ========================== %< ====================
> {code}
> [1] http://markmail.org/message/7exdutk2cktec2yy



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message