You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/11/15 06:17:38 UTC

[jira] Commented: (HARMONY-2181) [classlib][luni]Property fails to remove entry by iteration.

    [ 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