bugKawa - Bugs: bug #27257, non-int dim. spec. in emitNewArray

 
 

bug #27257: non-int dim. spec. in emitNewArray

Submitter:  Helmut Eller <ellerh>
Submitted:  Sat 15 Aug 2009 02:28:26 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 15 Aug 2009 07:18:33 PM UTC, comment #1: 

Thanks!  I checked in a fix,

Per Bothner <bothner>
Group administrator
Sat 15 Aug 2009 02:28:26 PM UTC, original submission:  

This code used to work:

(define (alloc-array count)
  (object[] length: (+ 1 count)))

but with revision 6325M I get:

(compiling x.scm to x)
x.scm:1: internal error while compiling x.scm
java.lang.Error: non-int dim. spec. in emitNewArray
        at gnu.bytecode.CodeAttr.emitNewArray(CodeAttr.java:1171)
        at gnu.bytecode.CodeAttr.emitNewArray(CodeAttr.java:1216)
        at gnu.kawa.reflect.ArrayNew.compile(ArrayNew.java:27)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:171)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:110)
        at gnu.expr.Expression.compileNotePosition(Expression.java:159)
        at gnu.expr.Expression.compileWithPosition(Expression.java:145)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1608)
        at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1584)
        at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:650)
        at gnu.expr.SetExp.compile(SetExp.java:172)
        at gnu.expr.Expression.compileNotePosition(Expression.java:159)
        at gnu.expr.Expression.compileWithPosition(Expression.java:145)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1608)
        at gnu.expr.Compilation.generateBytecode(Compilation.java:2016)
        at gnu.expr.Compilation.process(Compilation.java:1892)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:308)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:293)
        at kawa.repl.compileFiles(repl.java:803)
        at kawa.repl.processArgs(repl.java:457)
        at kawa.repl.main(repl.java:866)

Helmut Eller <ellerh>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-08-15 bothner Assigned toNone bothner
        Open/ClosedOpen Closed
        StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code