uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-4094) moveTo(fs) where fs > all items in index is broken
Date Fri, 07 Nov 2014 16:55:34 GMT

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

Marshall Schor commented on UIMA-4094:
--------------------------------------

Is there an earlier Jira for this issue?  (I may have missed it...; given that you've noticed
this and had put in a work-around)

> moveTo(fs) where fs > all items in index is broken
> --------------------------------------------------
>
>                 Key: UIMA-4094
>                 URL: https://issues.apache.org/jira/browse/UIMA-4094
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.4.0SDK, 2.4.1SDK, 2.4.2SDK, 2.5.0SDK, 2.6.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>             Fix For: 2.6.1SDK
>
>
> Using moveTo(fs) where the fs is beyond the last element in the index incorrectly sets
the iterator position to the 1st element.  It should set the iterator to (from the Javadocs)
""insertion point" for fs, i.e., to a point where the feature structure at that position is
greater than fs and the fs at the previous position (if it exists) is less than fs
> When the fs is > all the elements in the index should conceptually set the iterator
to 1 past the end of the index, which isValid() will return "false" for. 
> Because this change may break user code (in case users have worked around this), I think
this change should be removable under a JVM property flag, something like uima.keep_wrong_moveTo_behavior.
> UIMA-1601 introduced this behavior (8/19/2011).



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

Mime
View raw message