[
https://issues.apache.org/jira/browse/UIMA-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13778567#comment-13778567
]
Peter Klügl commented on UIMA-3292:
-----------------------------------
Yes, the inclusion of the script (the AE) in a aggregated analysis engine may
cause problems and I think we cannot solve this problem since we do not know
what users will actually do. I think the changes for the IDE itself are quite
straightforward. I would propose to do the same you did in ruta-core, but
create a problem (instead of an exception) for each position where a
conflicting short type name is used. (Probably you proposed exactly the same
thing)
The validators are in need of some major refactoring (I added functionality,
but did not have the time to resturucture it). The validators for example
always parse the script and import the type system in order to create the AST.
This can be cached a bit I think. There is UIMA-2900 for this task. What I am
trying to say is that we could extend the validator for conflicting short names
or we could wait for the refactoring. Either way, it needs to done for the next
release (I will adapt the fixVersion).
> 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
> Assignee: 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