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)" <de...@uima.apache.org> on 2015/07/24 16:54:04 UTC

[jira] [Updated] (UIMA-4533) class cast exception in CasAnnotationViewer

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

Marshall Schor updated UIMA-4533:
---------------------------------
    Summary: class cast exception in CasAnnotationViewer  (was: Regression - class cast exception in CasAnnotationViewer)

> class cast exception in CasAnnotationViewer
> -------------------------------------------
>
>                 Key: UIMA-4533
>                 URL: https://issues.apache.org/jira/browse/UIMA-4533
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.8.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>             Fix For: 2.8.1SDK
>
>
> The changes introduced in UIMA-3374 exposed a long-standing set of problems with the viewer.  There was code in the old version of the viewer, kept in the new version, that assumed non-JCas kinds of Java cover classes.  One instance of this is the line 
> {code}
> StringArrayFSImpl arrayFS = (StringArrayFSImpl) aFS.getFeatureValue(feature);
> {code}
> which generates a cast exception if the JCas is being used.  This code is in both versions of the viewer, but may not have been in an active code path in the older version (and therefore, went unnoticed).  
> Also scan the code to find any other instances of an assumption being made of the kind of cover class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)