You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/11/21 16:23:02 UTC

[jira] Created: (HARMONY-2254) [classlib][swing] compatibility: j.s.text.DefaultStyledDocument.setParagraphAttributes() ignores invalid values

[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


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

        

[jira] Updated: (HARMONY-2254) [classlib][swing] compatibility: j.s.text.DefaultStyledDocument.setParagraphAttributes() ignores invalid values

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ 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