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-2758) [classlib][swing] j.s.text.AbstractDocument.BranchElement.getElementIndex does not throw NPE
Date Fri, 15 Dec 2006 16:48:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2758?page=all ]

Alexey A. Ivanov updated HARMONY-2758:

    Attachment: HTest2758.java

Try out this application. You'll get -1 on Harmony and NPE on RI:
	at javax.swing.text.AbstractDocument$BranchElement.getStartOffset(AbstractDocument.java:2331)
	at javax.swing.text.AbstractDocument$BranchElement.getElementIndex(AbstractDocument.java:2379)
	at HTest2758.main(HTest2758.java:8)

This is because RI calls getStartOffset on BranchElement which has no child elements. Harmony
doesn't do it.

> [classlib][swing] j.s.text.AbstractDocument.BranchElement.getElementIndex does not throw
> --------------------------------------------------------------------------------------------
>                 Key: HARMONY-2758
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2758
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Alexey A. Ivanov
>         Attachments: HTest2758.java
> javax.swing.text.AbstractDocument.BranchElement.getElementIndex does not throw NullPointerException
whereas RI may throw it.

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


View raw message