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-2254) [classlib][swing] compatibility: j.s.text.DefaultStyledDocument.setParagraphAttributes() ignores invalid values
Date Tue, 21 Nov 2006 15:27:04 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2254?page=all ]

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

    Attachment: HTest2254.java

This simple application demonstrates the difference.

RI output:
1st paragraph: isBold = true
2st paragraph: isBold = false
1st paragraph: isItalic = true
2st paragraph: isItalic = true

Harmony output:
1st paragraph: isBold = false
2st paragraph: isBold = false
1st paragraph: isItalic = false
2st paragraph: isItalic = false

> [classlib][swing] compatibility: j.s.text.DefaultStyledDocument.setParagraphAttributes()
ignores invalid values
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2254
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2254
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib, Non-bug differences from RI
>            Reporter: Alexey A. Ivanov
>            Priority: Minor
>         Attachments: HTest2254.java
>
>
> In Harmony javax.swing.text.DefaultStyledDocument.setParagraphAttributes() does nothing
where offset or/and length arguments are invalid.
> Despite the spec, RI lets user pass incorrect arguments to the method and 'smartly' processes
it. (Actually it should throw BadLocationException in such situations but the method is declared
to not throw any exception.)
> This is also true for setCharacterAttributes() method.

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