bugKawa - Bugs: bug #11030, npe compiling when form

 
 

bug #11030: npe compiling when form

Submitted by:  tk <huh>
Submitted on:  Tue 16 Nov 2004 09:18:00 PM UTC  
 
Category: Scheme librarySeverity: 3 - Normal
Item Group: Compile-time exceptionStatus: 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.

 

Tue 16 Nov 2004 10:24:29 PM UTC, comment #1:

Thanks for the bug report.
I checked in a fix (to gnu.expr.InlineCalls).
(I'm curious how recent changes can affect this,
but it doesn't matter - it should work now.)

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Tue 16 Nov 2004 09:18:00 PM UTC, original submission:

recent syntax-case changes have broken the
following case (in cvs version as of 11/16/04

(define (foo)
(when #f
(+ 1 1)))

compiling this results in

#|kawa:1|# (compile-file "foo.scm" "foo.zip")
java.lang.NullPointerException
at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1429)
at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1412)
at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:571)
at gnu.expr.SetExp.compile(SetExp.java:150)
at gnu.expr.Expression.compileNotePosition(Expression.java:98)
at gnu.expr.Expression.compileWithPosition(Expression.java:84)
at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1429)
at gnu.expr.Compilation.addClass(Compilation.java:1892)
at gnu.expr.Compilation.compile(Compilation.java:917)
at gnu.expr.Compilation.compileToArchive(Compilation.java:988)
at kawa.lib.system.compileFile(system.scm:85)
at kawa.lib.system.apply2(system.scm:76)
at gnu.expr.ModuleMethod.apply2(ModuleMethod.java:189)
at gnu.expr.ModuleMethod.apply(ModuleMethod.java:157)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:240)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:194)
at kawa.Shell.run(Shell.java:231)
at kawa.Shell.run(Shell.java:177)
at kawa.Shell.run(Shell.java:164)
at kawa.Shell.run(Shell.java:151)
at kawa.repl.main(repl.java:670)

tk <huh>

 

(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

 

CC list is empty

 

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
Tue 16 Nov 2004 10:25:05 PM UTCbothnerOpen/ClosedOpen=>Closed
Tue 16 Nov 2004 10:24:29 PM UTCbothnerStatusNone=>Fixed
  Assigned toNone=>bothner

Back to the top


Powered by Savane 3.1-cleanup1