You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <ui...@incubator.apache.org> on 2008/01/31 05:15:36 UTC

[jira] Updated: (UIMA-735) ResultSpecification_impl missing equals and hashCode for inner class - causing intermittant test case failure

     [ https://issues.apache.org/jira/browse/UIMA-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor updated UIMA-735:
--------------------------------

    Fix Version/s: 2.3

> ResultSpecification_impl missing equals and hashCode for inner class - causing intermittant test case failure
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-735
>                 URL: https://issues.apache.org/jira/browse/UIMA-735
>             Project: UIMA
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.3
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.