harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-6017) [classlib] [luni] (Iterator) Hashtable.keys() throws ClassCastException
Date Mon, 17 Nov 2008 09:22:44 GMT

     [ 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.


Mime
View raw message