You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Alexandre Patry (JIRA)" <de...@uima.apache.org> on 2013/09/24 05:08:02 UTC

[jira] [Commented] (UIMA-3292) Conflicting types are not flagged by RUTA

    [ https://issues.apache.org/jira/browse/UIMA-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13775944#comment-13775944 ] 

Alexandre Patry commented on UIMA-3292:
---------------------------------------

Ambiguous types now raise an IllegalArgumentException when they are used (see {{ConflictingTypeTest}} unit test). I will look if it is possible to limit type resolutions to the type systems that are imported in the script.
                
> Conflicting types are not flagged by RUTA
> -----------------------------------------
>
>                 Key: UIMA-3292
>                 URL: https://issues.apache.org/jira/browse/UIMA-3292
>             Project: UIMA
>          Issue Type: Bug
>          Components: ruta
>            Reporter: Alexandre Patry
>
> *Steps to reproduce*
> # Create a RUTA script containing the rule {{W {-> T1}}}
> # Add this script to an aggregate whose type system contains {{conflicting.W}}
> # Run the script on the text _word_
> *Expected behaviour*
> _word_ is annotated with {{T1}}
> *Observed behaviour*
> Depending on the on the order in which the types iterated on in RutaEnvironment#initializeTypes, one of the following is observed: 
> * {{W}} is resolved to {{org.apache.uima.ruta.type.W}} and _word_ is annotated with {{T1}}
> * {{W}} is resolved to {{conflicting.W}} and no {{T1}} annotation is created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira