bugKawa - Bugs: bug #27019, setLength method of StringBuilder...

 
 

bug #27019: setLength method of StringBuilder not found

Submitted by:  Helmut Eller <ellerh>
Submitted on:  Sat 11 Jul 2009 08:31:40 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 06 Aug 2009 06:41:59 AM UTC, comment #2:

Thanks for the bug report. I just checked in a fix.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sat 11 Jul 2009 08:39:18 PM UTC, comment #1:

Just found out that

(define (set-length (builder java.lang.StringBuilder) (len int))
(set! builder:length len))

does the trick. Not sure if I like that, tough.

Helmut Eller <ellerh>
Sat 11 Jul 2009 08:31:40 PM UTC, original submission:

For some reason Kawa no longer finds the setLength method
in the StringBuilder class. Compiling:

(define (set-length (builder java.lang.StringBuilder) (len int))
(builder:setLength len))

prints:

string-builder-set-length.scm:4:3: warning - no known slot 'setLength' in java.lang.StringBuilder

Also calling it in the REPL doesn't work:

#|kawa:3|# (set-length (java.lang.StringBuilder) 0)
java.lang.RuntimeException: no part 'setLength' in
at gnu.kawa.functions.GetNamedPart.getMemberPart(GetNamedPart.java:323)
at gnu.kawa.functions.GetNamedPart.getNamedPart(GetNamedPart.java:304)
at gnu.kawa.functions.GetNamedPart.apply2(GetNamedPart.java:245)
at atInteractiveLevel$2.setLength(stdin:2)
at atInteractiveLevel$2.apply2(stdin:1)
at gnu.expr.ModuleMethod.apply2(ModuleMethod.java:195)
at gnu.expr.ModuleMethod.apply(ModuleMethod.java:163)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:251)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:355)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:176)
at kawa.Shell.run(Shell.java:273)
at kawa.Shell.run(Shell.java:184)
at kawa.Shell.run(Shell.java:165)
at kawa.repl.main(repl.java:887)

With Kawa 1.9.3 (revision 6292M)

Helmut Eller <ellerh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by ellerh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 06 Aug 2009 06:41:59 AM UTCbothnerAssigned toNone=>bothner
      Open/ClosedOpen=>Closed
      StatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1