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]

problem with java.lang.StringBuffer append method


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
 

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