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 2006/11/22 22:38:03 UTC

[jira] Assigned: (UIMA-40) CasAnnotationViewer doesn't support new primitive types

     [ http://issues.apache.org/jira/browse/UIMA-40?page=all ]

Adam Lally reassigned UIMA-40:
------------------------------

    Assignee: Thilo Goetz  (was: Adam Lally)

Assigning to Thilo to review and "straighten this out" as he offered on the dev list.

> Adam Lally wrote:
> > I fixed a bug (reported on the forum) that the Annotation Viewer
> > didn't support the new primitive types.  But I'm not so happy with my
> > fix... it involved a lot of if..else if blocks for each of the
> > different array types.  You can get an idea of how ugly it was to
> > implement this just by scanning the patch quoted below.  Is there a
> > better way?  Should I create a new JIRA issue for cleaning this up?
> >
> > -Adam
>
> I was going to answer "you can use LowLevelCAS.ll_getTypeClass(int
> typeCode)" but I see that Bhavani failed to update that method for the
> new types.  I will have to deal with the same thing in the CVD one of
> these days.  When I do, I'll go back to the annotation viewer and see if
> I can straighten things out.
>

What would have been nice is a common superinterface of all the
primitive array types, which defines a toStringArray() method.  The
toStringArray() methods are already there on the impls, but there's no
superinterface that I can use to get at them.

> CasAnnotationViewer doesn't support new primitive types
> -------------------------------------------------------
>
>                 Key: UIMA-40
>                 URL: http://issues.apache.org/jira/browse/UIMA-40
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Adam Lally
>         Assigned To: Thilo Goetz
>
> If an annotation has a feature of type byte, boolean, short, long, or double; clicking on this annotation in the text view causes an exception to be printed to the console and nothing to be displayed in the annotation details tree.

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