lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Cowan (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-828) Term's equals() throws ClassCastException if passed something other than a Term
Date Thu, 08 Mar 2007 05:15:24 GMT
Term's equals() throws ClassCastException if passed something other than a Term
-------------------------------------------------------------------------------

                 Key: LUCENE-828
                 URL: https://issues.apache.org/jira/browse/LUCENE-828
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Paul Cowan
            Priority: Trivial
         Attachments: termequals.patch

Term.equals(Object) does a cast to Term without checking if the other object is a Term.

It's unlikely that this would ever crop up but it violates the implied contract of Object.equals().

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message