This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
problem with java.lang.StringBuffer append method
- To: "Kawa (E-mail)" <kawa at sources dot redhat dot com>
- Subject: problem with java.lang.StringBuffer append method
- From: Allan Erskine <a dot erskine at cs dot ucl dot ac dot uk>
- Date: Fri, 11 May 2001 14:59:04 +0100
Hi
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! buf (make
<java.lang.StringBuffer>))
(set! foo (make
<java.lang.String> "bar"))
(set! baz (invoke
buf 'append foo))
(Fails with Argument
to 'java.lang.StringBuffer.append' has wrong type)?
Thanks
Allan