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] Resolved: (HARMONY-1492) [classlib][luni] Constructor of HashMap throw unexpected exception
Date Mon, 18 Dec 2006 21:29:24 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1492?page=all ]

Tim Ellison resolved HARMONY-1492.
----------------------------------

    Resolution: Fixed

Thanks Spark.

Patch applied to LUNI module at repo revision r488425.

Please check that the patch was applied as you expected.


> [classlib][luni] Constructor of HashMap throw unexpected exception
> ------------------------------------------------------------------
>
>                 Key: HARMONY-1492
>                 URL: http://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.
-
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