You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Adam Lally (JIRA)" <ui...@incubator.apache.org> on 2007/01/19 15:42:30 UTC

[jira] Assigned: (UIMA-209) FeatureStructure.equals returns false for same FS obtained through different views

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

Adam Lally reassigned UIMA-209:
-------------------------------

    Assignee: Adam Lally  (was: Eddie Epstein)

> FeatureStructure.equals returns false for same FS obtained through different views
> ----------------------------------------------------------------------------------
>
>                 Key: UIMA-209
>                 URL: https://issues.apache.org/jira/browse/UIMA-209
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: fsEqualsTest.patch
>
>
> This is because the implementation of FeatureStructure.equals checks that the FS are both pointing to the same CAS object.  But the CAS reference of an FS is currently being set to whichever view that FS was created off of.  So if you obtain a reference to an FS through two different views, equals() will always return false because the CAS references don't match.  This broke the CasCopier utility which relies on equals() to work correctly.
> I will attach a simple patch for the SofaTest testcase that demonstrates the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira