bugKawa - Bugs: bug #9010, compilation of define-alias form...

 
 

bug #9010: compilation of define-alias form causes NPE

Submitted by:  None
Submitted on:  Wed 19 May 2004 04:29:47 PM UTC  
 
Category: Code generationSeverity: 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.

 

Thu 20 May 2004 12:26:37 AM UTC, comment #1:

Thanks for reporting this. I checked in a patch.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Wed 19 May 2004 04:29:47 PM UTC, original submission:

in latest CVS version (5/19/2004),
compilation of define-alias form causes following exception

$ cat foo.scm
(define-alias foo bar)
$ java -jar kawa.jar -C foo.scm
(compiling foo.scm)
Internal error while compiling foo.scm
java.lang.NullPointerException
at gnu.expr.LambdaExp.loadHeapFrame(LambdaExp.java:462)
at gnu.expr.Declaration.loadOwningObject(Declaration.java:109)
at gnu.expr.Declaration.load(Declaration.java:119)
at gnu.expr.ReferenceExp.compile(ReferenceExp.java:118)
at gnu.expr.Expression.compile(Expression.java:108)
at gnu.expr.BindingInitializer.emit(BindingInitializer.java:57)
at gnu.expr.Compilation.generateConstructor(Compilation.java:1132)
at gnu.expr.LambdaExp.compileEnd(LambdaExp.java:498)
at gnu.expr.Compilation.addClass(Compilation.java:1716)
at gnu.expr.Compilation.compile(Compilation.java:913)
at gnu.expr.Compilation.compileToFiles(Compilation.java:960)
at kawa.lang.CompileFile.compile_to_files(CompileFile.java:92)
at kawa.repl.processArgs(repl.java:389)
at kawa.repl.main(repl.java:634)

Anonymous

 

(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
Thu 20 May 2004 12:26:37 AM UTCbothnerStatusNone=>Fixed
  Assigned toNone=>bothner
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1