Menu

#182 compiler crash: popType called with empty stack

open
nobody
None
5
2006-08-23
2006-08-23
B S
No

In nice-0.9.12 if I add an optional parameter to one of
my base class custom constructors, I get a compiler
crash in the linking step. If I just add a second
custom constructor, then there is no problem. If you
need the code, I can post it.

Stack trace:
Exception in thread "main" java.lang.Error: popType
called with empty stack in new
scheme.interp.JavaCodeContinuation(scheme.interp.ExecEnvironment,scheme.interp.Scope,gnu.mapping.Procedure)
at gnu.bytecode.CodeAttr.popType(CodeAttr.java:211)
at
gnu.bytecode.CodeAttr.emitInvokeMethod(CodeAttr.java:1084)
at
gnu.bytecode.CodeAttr.emitInvokeSpecial(CodeAttr.java:1147)
at gnu.expr.InitializeProc.compile(InitializeProc.java:98)
at gnu.expr.ApplyExp.compile(ApplyExp.java:192)
at gnu.expr.ApplyExp.compile(ApplyExp.java:111)
at
gnu.expr.ConstructorExp.enterFunction(ConstructorExp.java:95)
at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1534)
at
gnu.expr.LambdaExp.compileChildMethods(LambdaExp.java:1422)
at
gnu.expr.ClassExp.compileChildMethods(ClassExp.java:573)
at gnu.expr.Compilation.compileAll(Compilation.java:1614)
at gnu.expr.Compilation.generate(Compilation.java:1588)
at gnu.expr.Compilation.compile(Compilation.java:1556)
at gnu.expr.Package.compileToFiles(Package.java:100)
at
bossa.modules.Package.finishCompilation(Package.java:411)
at bossa.modules.Package.link(Package.java:388)
at mlsub.compilation.fun.lambda27(Unknown Source)
at mlsub.compilation.fun.apply1(Unknown Source)
at gnu.expr.ModuleMethod.apply1(ModuleMethod.java:89)
at nice.lang.fun.foreach(collections.nice:141)
at nice.lang.dispatch.foreach(Unknown Source)
at mlsub.compilation.fun.compileComponent(make.nice:33)
at mlsub.compilation.dispatch.compileComponent(Unknown
Source)
at mlsub.compilation.fun$make.lambda24(Unknown Source)
at mlsub.compilation.fun$make.apply1(Unknown Source)
at gnu.expr.ModuleMethod.apply1(ModuleMethod.java:89)
at nice.lang.fun.foreach(collections.nice:141)
at nice.lang.dispatch.foreach(Unknown Source)
at mlsub.compilation.fun.make(make.nice:44)
at mlsub.compilation.dispatch.make(Unknown Source)
at nice.tools.compiler.fun.compile(interface.nice:40)
at nice.tools.compiler.dispatch.compile(Unknown Source)
at nice.tools.compiler.console.fun.compile(main.nice:170)
at
nice.tools.compiler.console.dispatch.compile(Unknown
Source)
at nice.tools.compiler.console.fun.main(main.nice:204)
at nice.tools.compiler.console.dispatch.main(Unknown
Source)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB