Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-828

Term's equals() throws ClassCastException if passed something other than a Term

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.1
    • None
    • None
    • None
    • New, Patch Available

    Description

      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().

      Attachments

        1. termequals.patch
          2 kB
          Paul Cowan

        Activity

          People

            Unassigned Unassigned
            pcowan Paul Cowan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: