You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org> on 2009/07/21 18:38:15 UTC

[jira] Closed: (UIMA-1341) Introduce generics in UIMA core API

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

Jörn Kottmann closed UIMA-1341.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3

The UIMA API now uses generics in many parts. Some parts still must be enhanced.

The additionalParams map used in many places for configuration is still a raw type to guarantee
backward compatibility. In one case the test code passed a java Properties object which is Map<Object, Object>
and not the desired Map<String, Object>, if client code also does that it would result in a compile error and break
backward compatibility.

The FSIndexRepository was not enhanced but could be which is related to the suggestion from
Adam Lally:
http://www.mail-archive.com/uima-dev@incubator.apache.org/msg04657.html
To introduce generics the methods of the interface must be changed which
would lead to new methods and deprecation of existing methods.
These changes should be discussed in detail on the uima-dev list and
handled in a separate issue. 

This issue has a small risk of causing compiler errors in user code which already call
UIMA APIs with generic types if these types are different from these specified by the UIMA API.
For example: Iterator<Object> it = cas.getViewIterator() will cause a compiler error.


> Introduce generics in UIMA core API
> -----------------------------------
>
>                 Key: UIMA-1341
>                 URL: https://issues.apache.org/jira/browse/UIMA-1341
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Jörn Kottmann
>            Assignee: Jörn Kottmann
>             Fix For: 2.3
>
>         Attachments: UIMA-1341.patch
>
>
> The UIMA core API should make use of generics. To achieve this all interfaces should be updated to make use of generics. All changes
> must be backward compatible to previous releases of UIMA.

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