[kaffe] How to make Saxon 7.2 work with kaffe
Mark Wielaard
mark@klomp.org
11 Oct 2002 22:38:48 +0200
Hi,
On Thu, 2002-10-10 at 22:16, Dalibor Topic wrote:
> --- Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
> wrote:
> >
> > Added methods are:
> >
> > + // The following methods were copied from
> > + // AbstractMap of classpath because kaffe's does
> > not have ones.
> > + static final boolean equals(Object o1, Object o2)
> > + {
> > + return o1 == null ? o2 == null : o1.equals(o2);
> > + }
> > + static final int hashCode(Object o)
> > + {
> > + return o == null ? 0 : o.hashCode();
> > + }
> >
> > These are used in WeakHashMap of GNU Classpath and
> > are defined
> > in AbstractMap of GNU classpath which WeakHashMap
> > extends.
>
> Thanks for clearing it up. The methods are not part of
> any JDK API, so I'd prefer to see an implementation
> that doesn't need them, unless there is a good reason
> for their existance (beside being used by classpath).
Note that they are final and package local so they do not show up in the
public api anyway. (They were added that way to GNU Classpath to make it
easy to get at the standard collections equals and hashCode definition.)
But if you want you can always make them private of course.
Cheers,
Mark