[jdom-interest] Namespace.hashcode patch

philip.nelson at omniresources.com philip.nelson at omniresources.com
Wed May 30 14:11:34 PDT 2001


> When Namespace.equals() was modified to compare only URI's and not
> prefixes, hashCode() was not similarly adjusted.  Since this 
> breaks the
> contract established by java.lang.Object, I would like to propose that
> hashCode() be modified to simply return uri.hashCode().

I'm not sure I follow you.  == is object equality.  .equals is semantic
equality.  We have that with the current implementation.



More information about the jdom-interest mailing list