Thilo Goetz (JIRA) wrote:
[ https://issues.apache.org/jira/browse/UIMA-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564316#action_12564316 ]
Thilo Goetz commented on UIMA-735:
----------------------------------

Any particular reason you didn't close this issue?
Because the condition which led me to suspect this is quite intermittant, I wanted to run tests for a few days to be sure that was the cause.

-Marshall

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.


Reply via email to