This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: problem with java.lang.StringBuffer append method
- To: Allan Erskine <a dot erskine at cs dot ucl dot ac dot uk>
- Subject: Re: problem with java.lang.StringBuffer append method
- From: Per Bothner <per at bothner dot com>
- Date: 16 May 2001 15:28:32 -0700
- Cc: "Kawa (E-mail)" <kawa at sources dot redhat dot com>
- References: <001401c0da22$8beb49d0$ea4dfea9@spukny>
Allan Erskine <a.erskine@cs.ucl.ac.uk> writes:
> I'm preparing a Scheme sample for Cocoon2 (using a preliminary
> BSFKawaEngine). The samples are to output their XML as a
> java.lang.StringBuffer, but I'm having difficultly with the append method.
>
> Could anyone tell me why this doesn't work (latest CVS):
> (set! baz (invoke buf 'append foo))
> (Fails with Argument to 'java.lang.StringBuffer.append' has wrong type)?
I just checked in a fix for this. The problem was that append(boolean)
was confusing things. I resolved that by a fix making boolean less
specific than any other type (except void). This is not 100% correct,
but should work fairly well.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/