harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2756) [classlib][swing] j.s.text.AbstractDocument.BranchElement.getElementIndex may return -1 instead of 0 in RI
Date Fri, 15 Dec 2006 17:32:25 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2756?page=all ]

Alexey A. Ivanov updated HARMONY-2756:
--------------------------------------

    Attachment: H2756-AbstractDocument.patch

This patch fixes BranchElement.getElementIndex() so that it never returns negative index.

BranchElement.positionToElement() has been refactored to use getElementIndex() to search for
index. (Additional test case is provided in patch to tests.)

> [classlib][swing] j.s.text.AbstractDocument.BranchElement.getElementIndex may return
-1 instead of 0 in RI
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2756
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2756
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>            Priority: Minor
>         Attachments: H2756-AbstractDocument.patch, H2756-AbstractDocument_BranchElementTest.patch,
HTest2756.java
>
>
> javax.swing.text.AbstractDocument.BranchElement.getElementIndex may return -1 in Harmony
in case where RI returns 0.

-- 
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

        

Mime
View raw message