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 Varlamov (JIRA)" <ji...@apache.org> on 2006/11/14 10:26:38 UTC
[jira] Assigned: (HARMONY-2181) [classlib][luni]Property fails to
remove entry by iteration.
[ http://issues.apache.org/jira/browse/HARMONY-2181?page=all ]
Alexey Varlamov reassigned HARMONY-2181:
----------------------------------------
Assignee: Alexey Varlamov
> [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