harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r547675 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
Date Fri, 15 Jun 2007 13:22:25 GMT
Author: odeakin
Date: Fri Jun 15 06:22:24 2007
New Revision: 547675

URL: http://svn.apache.org/viewvc?view=rev&rev=547675
Log:
Apply patch HARMONY-4188 ([classlib][util] java.util.jar.Attributes.Name.hashCode() returns
the same value for any object)

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

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java?view=diff&rev=547675&r1=547674&r2=547675
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/Attributes.java
Fri Jun 15 06:22:24 2007
@@ -115,7 +115,7 @@
         @Override
         public int hashCode() {
             if (hashCode == 0) {
-                hashCode = Util.toASCIILowerCase("name").hashCode();
+                hashCode = Util.toASCIILowerCase(name).hashCode();
             }
             return hashCode;
         }



Mime
View raw message