[kaffe] How to make Saxon 7.2 work with kaffe
Dalibor Topic
robilad@yahoo.com
Tue, 8 Oct 2002 13:05:40 -0700 (PDT)
Hi Itzo,
thanks for posting the information on running Saxon
7.2.
--- Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
wrote:
> 1. Add missing packages and classes to kaffe.
>
> (1) Copy java/lang/CharSequence.java from
> classpath-0.04
should be easy to add as its just an interface. String
and StringBuffer implement it in JDK 1.4, so we should
patch them, too.
> (2) Copy java/util/WeakHashMap.java from
> classpath-0.04 and
> apply the following patch
> --- java/util/WeakHashMap.java.orig Thu Sep 19
> 09:34:34 2002
> +++ java/util/WeakHashMap.java Thu Sep 19 09:59:22
> 2002
> @@ -86,6 +86,19 @@
> */
> public class WeakHashMap extends AbstractMap
> implements Map
> {
> +
> + // 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();
> + }
> + // end of methods copied from AbstractMap of
> classpath
> +
> // WARNING: WeakHashMap is a CORE class in the
> bootstrap cycle. See the
> // comments in vm/reference/java/lang/Runtime for
> implications of this fact.
These methods are not part of the java 1.4 API. Why
are they needed?
> (3) Install the package gnu.regexp
It's LGPLd so we could put it in kaffe like kjc.
> (4) Make the package java.util.regex using
> gnu.regexp
> My java.util.regex is attached hereunder. I
> do not know whether
> it works properly. I just want to avoid
> compile-time errors.
thanks for your java.regex implementation. I'll take a
look at it when I'm back from my vacation. I believe
that classpath is using gnu.regexp as the basis for
their regex implementation, too.
best reagards,
dalibor topic
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com