harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2181) [classlib][luni]Property fails to remove entry by iteration.
Date Wed, 15 Nov 2006 05:17:38 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2181?page=comments#action_12449912 ] 
            
Leo Li commented on HARMONY-2181:
---------------------------------

Verified. Thank you.

> [classlib][luni]Property fails to remove entry by iteration.
> ------------------------------------------------------------
>
>                 Key: HARMONY-2181
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2181
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Alexey Varlamov
>         Attachments: patch.diff
>
>
> Here is the testcase:
>  public void testRemoveEntry()
>     {
>         Properties props = new Properties();              
>         props.setProperty( "my.nonexistent.prop", "AAA" );
>         props.setProperty( "parse.error", "BBB" );
>         Iterator iterator = props.entrySet().iterator();
>         while(iterator.hasNext())
>         {
>             Map.Entry entry = ( Map.Entry ) iterator.next();
>             final Object value = entry.getValue();
>             System.out.println(value);
>             if(value.equals("AAA"))
>             {
>                iterator.remove();
>             }
>         }        
>         assertNull(props.getProperty("my.nonexistent.prop"));
>     }
> Testcase result:
> RI passes.
> 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