[kaffe] How to make Saxon 7.2 work with kaffe
Dalibor Topic
robilad at yahoo.com
Thu Oct 10 13:16:45 PDT 2002
--- Ito Kazumitsu <ito.kazumitsu at hitachi-cable.co.jp>
wrote:
> In message "Re: [kaffe] How to make Saxon 7.2 work
> with kaffe"
> on 02/10/09, Dalibor Topic <robilad at yahoo.com>
> writes:
>
> > I wasn't precise enough in my question. I was
> > wondering about the methods you added to
> classpath's
> > WeakHashMap implementation (equals(Object, Object)
> and
> > hash(Object), I believe). Why are these methods
> > necessary?
>
> 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).
best regards,
dalibor topic
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
More information about the kaffe
mailing list