harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r410603 - /incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
Date Wed, 31 May 2006 17:10:13 GMT
Author: tellison
Date: Wed May 31 10:10:13 2006
New Revision: 410603

URL: http://svn.apache.org/viewvc?rev=410603&view=rev
Log:
Restore some explict casts to force class cast exception.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java?rev=410603&r1=410602&r2=410603&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
Wed May 31 10:10:13 2006
@@ -232,7 +232,7 @@
      *                String
      */
     public Object put(Object key, Object value) {
-        return map.put(key, value);
+        return map.put((Name)key, (String)value);
     }
 
     /**
@@ -245,7 +245,7 @@
         if (attrib == null) {
             throw new ClassCastException();
         }
-        this.map.putAll(attrib);
+        this.map.putAll((Attributes)attrib);
     }
 
     /**



Mime
View raw message