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] Closed: (HARMONY-1492) [classlib][luni] Constructor of HashMap throw unexpected exception
Date Tue, 24 Apr 2007 15:47:16 GMT

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

Tim Ellison closed HARMONY-1492.
--------------------------------


No response, assuming ok.


> [classlib][luni] Constructor of HashMap throw unexpected exception
> ------------------------------------------------------------------
>
>                 Key: HARMONY-1492
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1492
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>         Assigned To: Tim Ellison
>         Attachments: 1492.diff
>
>
> Below tests pass on RI, but fails on Harmony:
> public class SubMapTest extends TestCase {
>     public void testSubclass() {
>         HashMap map = new HashMap();
>         map.put("a", "a");
>         SubMap map2 = new SubMap(map);
>     }
> }
> class SubMap<K, V> extends HashMap<K, V> {
>     public SubMap(Map<? extends K, ? extends V> m) {
>         super(m);
>     }
>     public V put(K key, V value) {
>         throw new RuntimeException();
>     }
> }
> I will attach a patch soon.

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