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/14 06:39:37 UTC
[jira] Created: (HARMONY-2181) [classlib][luni]Property fails to
remove entry by iteration.
[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
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
[jira] Assigned: (HARMONY-2181) [classlib][luni]Property fails to
remove entry by iteration.
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (HARMONY-2181) [classlib][luni]Property fails to
remove entry by iteration.
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2181?page=all ]
Leo Li updated HARMONY-2181:
----------------------------
Attachment: patch.diff
Will somebody try the patch?
> [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
> 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
[jira] Commented: (HARMONY-2181) [classlib][luni]Property fails to
remove entry by iteration.
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ 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
[jira] Closed: (HARMONY-2181) [classlib][luni]Property fails to
remove entry by iteration.
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2181?page=all ]
Alexey Varlamov closed HARMONY-2181.
------------------------------------
Resolution: Fixed
Thanks for finding and fixing.
The patch applied at r474719
> [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