commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Richards (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-544) ToStringStyle.registry ThreadLocal initialValue should return a Set that implements reference equality checking instead of object equality
Date Thu, 27 Jan 2011 08:08:48 GMT

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

Michael Richards commented on LANG-544:
---------------------------------------

Thank you for your e-mail.  I will be out of the office until 1/27/2011.  I will review and
respond to your e-mail as soon as possible when I return.

Regards,
Michael Richards
Architect, Software Engineering
585.340.2717 (office)




> ToStringStyle.registry ThreadLocal initialValue should return a Set that implements reference
equality checking instead of object equality
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-544
>                 URL: https://issues.apache.org/jira/browse/LANG-544
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.builder.*
>    Affects Versions: 2.4
>            Reporter: Michael Richards
>             Fix For: 3.1
>
>
> ToStringStyle.registry ThreadLocal initialValue should return a Set that implements reference
equality checking instead of object equality.
> This change would still protect against cyclical object graphs, but also protect against
the following conditions:
> * Incorrect implementations of hashCode/equals for any objects in the object graph
> * Unintended side effects of the hashCode/equals methods for any objects in the object
graph
> Unfortunately, Java versions prior to 1.6 do not provide a simple built-in mechanism
to create such a Set.  This issue is discussed here in detail:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4479578
> A possible work-around is to use an IdentityHashMap instead of a Set.  This class is
available in Java 1.4 and later.

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


Mime
View raw message