harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6017) [classlib] [luni] (Iterator) Hashtable.keys() throws ClassCastException
Date Thu, 13 Nov 2008 10:41:44 GMT
[classlib] [luni] (Iterator) Hashtable.keys() throws ClassCastException
-----------------------------------------------------------------------

                 Key: HARMONY-6017
                 URL: https://issues.apache.org/jira/browse/HARMONY-6017
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M7
            Reporter: Kevin Zhou
             Fix For: 5.0M8


Given a test case [1], HARMONY will throws ClassCastException while RI works well. This also
occurs when cast Hashtable.elements() to Iterator and cast Hashtable.keySet().iterator() to
Enumeration.

[1]
public void test_HashTable_keys() {
        Hashtable hashTable = new Hashtable();
        hashTable.put("key", "value");

        // cast Enumeration to Iterator
        Iterator iterator = (Iterator) hashTable.keys();
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message