You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/10/10 14:57:36 UTC
[jira] [Commented] (PROTON-698) ClassCastException occurs when
testing equality of Binary instance against a different type of Object
[ https://issues.apache.org/jira/browse/PROTON-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14166788#comment-14166788 ]
ASF subversion and git services commented on PROTON-698:
--------------------------------------------------------
Commit 1630855 from [~gsim] in branch 'proton/branches/examples'
[ https://svn.apache.org/r1630855 ]
PROTON-698: return false if given object class differs, and shortcut equality of the object with itself
> ClassCastException occurs when testing equality of Binary instance against a different type of Object
> -----------------------------------------------------------------------------------------------------
>
> Key: PROTON-698
> URL: https://issues.apache.org/jira/browse/PROTON-698
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-j
> Affects Versions: 0.7
> Reporter: Robbie Gemmell
> Assignee: Robbie Gemmell
> Fix For: 0.8
>
>
> If you call equals on a Binary instance with another type of Object, a ClassCastException results because Binary#equals(..) does an unchecked cast.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)