harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Deakin (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-4188) [classlib][util] java.util.jar.Attributes.Name.hashCode() returns the same value for any object
Date Fri, 15 Jun 2007 13:32:32 GMT

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

Oliver Deakin resolved HARMONY-4188.
------------------------------------

    Resolution: Fixed

Thanks Roman - patch applied at repo revision r547675. Please check it has been applied as
expected.

Just a minor comment on the patch you supplied - could you please create the patch from the
root of the module or the root of the classlib trunk checkout. Since your patch only specified
Attributes.java, I had to go and hunt down the appropriate file to apply it to - it turned
out there are actually two Attributes.java files in classlib so I then had to inspect the
files to know which one to apply the patch to. Providing the path from the module or classlib
root makes the process of applying the patches quicker and easier. Thanks!

> [classlib][util] java.util.jar.Attributes.Name.hashCode() returns the same value for
any object
> -----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4188
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4188
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Oliver Deakin
>         Attachments: HARMONY-4188.diff
>
>
> The following code returns the same value for any object:
> public int hashCode() {
>             if (hashCode == 0) {
>                 hashCode = Util.toASCIILowerCase("name").hashCode();
>             }
>             return hashCode;
> }

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