[kaffe] How to make Saxon 7.2 work with kaffe

Mark Wielaard mark at klomp.org
Fri Oct 11 13:38:48 PDT 2002


Hi,

On Thu, 2002-10-10 at 22:16, Dalibor Topic wrote:
> --- Ito Kazumitsu <ito.kazumitsu at 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




More information about the kaffe mailing list