You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2008/11/17 10:22:44 UTC

[jira] Assigned: (HARMONY-6017) [classlib] [luni] (Iterator) Hashtable.keys() throws ClassCastException

     [ https://issues.apache.org/jira/browse/HARMONY-6017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-6017:
------------------------------------

    Assignee: Tim Ellison

> [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
>            Assignee: Tim Ellison
>             Fix For: 5.0M8
>
>         Attachments: HARMONY-6017.diff
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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.