harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-527) [classlib][text] java.text.AttributedString.addAttribute() incorrectly handles null value.
Date Fri, 02 Jun 2006 09:07:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-527?page=all ]

Mikhail Loenko reassigned HARMONY-527:
--------------------------------------

    Assign To: Mikhail Loenko

> [classlib][text] java.text.AttributedString.addAttribute() incorrectly handles null value.
> ------------------------------------------------------------------------------------------
>
>          Key: HARMONY-527
>          URL: http://issues.apache.org/jira/browse/HARMONY-527
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Mikhail Loenko
>     Priority: Trivial
>  Attachments: 01.Harmony527.diff
>
> java.text.AttributedString.addAttribute() should notl add attribute when its vaule is
null.  If it is fixed, the excluded org/apache/harmony/text/tests/java/text/AttributedCharacterIteratorTest.java
can be enabled.
> The following tests reproduces the bug,
>      public void test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
>     {
>             AttributedString as = new AttributedString("test");
>             AttributedCharacterIterator it = as.getIterator();
>             as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null,
>                     2, 3);
>             it = as.getIterator();
>             assertEquals("null value limit",
>                     4, it.getRunLimit(AttributedCharacterIterator.Attribute.LANGUAGE));
>     }
> RI 5.0 passes this test, but Harmony fails.

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