This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem with java.lang.StringBuffer append method


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]