You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/10/31 09:51:08 UTC

[jira] Updated: (HARMONY-1864) classlib][archive] java.util.jar.Attributes.put(null,null) throws unexpected ClassCastException

     [ http://issues.apache.org/jira/browse/HARMONY-1864?page=all ]

Leo Li updated HARMONY-1864:
----------------------------

    Attachment: patch.diff

Will somebody try this patch?

> classlib][archive] java.util.jar.Attributes.put(null,null) throws unexpected ClassCastException
> -----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1864
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1864
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Svetlana Samoilenko
>            Priority: Minor
>         Attachments: patch.diff
>
>
> Description:
> java.util.jar.Attributes.put(null,null) throws unexpected ClassCastException.
> Test for reproducing:
> import junit.framework.TestCase;
> import java.util.jar.*;
> public class test extends TestCase { 
>     public void testPutNullNull() { 
>         Attributes a = new Attributes();
>         a.put(null, null);                  
>     }    
> }
> HARMONY output:
> ==============
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r453981, (Oct  9 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> .E
> Time: 0.015
> There was 1 error:
> 1) testPutNullNull(test)java.lang.ClassCastException
>         at java.util.jar.Attributes.put(Attributes.java:242)
>         at test.testPutNullNull(test.java:7)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 0,  Errors: 1
> SUN output:
> ==========
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
> .
> Time: 0.01
> OK (1 test)

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