Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-735

ResultSpecification_impl missing equals and hashCode for inner class - causing intermittant test case failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2
    • None
    • None

    Description

      The ResultSpec impl has an inner class, ToF_Languages. When comparing 2 result specificaitons for equal in test cases, these are compared. But they are missing an equals (and hashCode) methods. So the test case fails to say they're equal unless they're identical. But cloning happens a lot in the way Result specs are used, and in this test, they may be equal (I think) but not ==.

      Solution: Add proper equals and hashCode to this inner class.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: