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] Created: (HARMONY-2181) [classlib][luni]Property fails to remove entry by iteration.
Date Tue, 14 Nov 2006 05:39:37 GMT
[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

        

Mime
View raw message