[
https://issues.apache.org/jira/browse/LANG-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830723#action_12830723
]
Matt Benson edited comment on LANG-588 at 2/7/10 4:25 PM:
----------------------------------------------------------
My concern regarding the hashCode, Seb, is that a different calculation may be
gotten on different running VMs. I am certainly open to making the field
{{volatile}} if necessary, but TBH I don't see why it would be, unless it's
possible for hashCode() be called (a) before the constructor has executed, or
(b) before deserialization has completed. Educate me here. :)
was (Author: mbenson):
My concern regarding the hashCode, Seb, is that a different calculation may
be gotten on different running VMs. I'll add {{volatile}} as you suggest.
> Create a basic Pair<L, R> class
> -------------------------------
>
> Key: LANG-588
> URL: https://issues.apache.org/jira/browse/LANG-588
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Matt Benson
> Fix For: 3.0
>
> Attachments: MatchedPair.java, MatchedPairTest.java, Pair.java,
> PairTest.java
>
>
> [lang] is the perfect place to provide a basic typed Pair class. I have
> written such a class for my employer (who hasn't?) but can/will rewrite blind
> to avoid IP issues. I think it's also nice to go ahead and extend this to
> MatchedPair<T> extends Pair<T, T> as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.