[ nice-Bugs-1305247 ] linker error : popType called with empty stack
"SourceForge.net" <[email protected]> Wed, 12 Oct 2005 08:57:38 -0700
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1305247, was opened at 2005-09-26 23:42
Message generated for change (Comment added) made by bonniot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1305247&group_id=12788
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: linker error : popType called with empty stack
Initial Comment:
Nice compiler version = 0.9.10 (build 2005.02.25)
Listing 1
--------------------------------------------------------------------
package com.enterprise;
public class Person {
String name;
}
Listing 2
--------------------------------------------------------------------
package com.accessor;
import com.enterprise;
void setName(Person person, String str) = person.name =
str;
Listing 3
--------------------------------------------------------------------
package com.acme;
import com.enterprise;
import com.accessor;
void main(String[] args) {
Person person = new Person(name: "Joe Blow");
println("Person name = " + person.name);
person.setName("GI Joe");
println("New name = " + person.name());
}
Results of compilation
----------------------
[francistran@hdtran nice]$ nicec -c com/enterprise
nice.lang: parsing
com.enterprise: parsing
[francistran@hdtran nice]$ nicec -c com/accessor
nice.lang: parsing
com.enterprise: parsing
com.accessor: parsing
com.accessor: typechecking
com.accessor: generating code
[francistran@hdtran nice]$ nicec -a com/acme/Test.jar
com/acme
nice.lang: parsing
com.enterprise: parsing
com.accessor: parsing
com.acme: parsing
com.accessor: typechecking
com.accessor: generating code
com.acme: typechecking
com.acme: generating code
com.acme: linking
An exception has occured in the compiler
Please fill-in a bug report at the following webpage:
http://sourceforge.net/tracker/?func=add&group_id=12788&atid=112788
Stack trace:
Exception in thread "main" java.lang.Error: popType
called with empty stack in java.lang.String
com.enterprise.Person.setName(java.lang.String)
at gnu.bytecode.CodeAttr.popType(CodeAttr.java:211)
at
gnu.bytecode.CodeAttr.emitRealReturn(CodeAttr.java:1731)
at
gnu.bytecode.CodeAttr.emitReturn(CodeAttr.java:1720)
at nice.lang.inline.Return.compile(Return.java:46)
at gnu.expr.ApplyExp.compile(ApplyExp.java:192)
at gnu.expr.ApplyExp.compile(ApplyExp.java:111)
at
gnu.expr.Expression.compileWithPosition(Expression.java:72)
at gnu.expr.BeginExp.compile(BeginExp.java:84)
at
gnu.expr.Expression.compileWithPosition(Expression.java:72)
at
gnu.expr.LambdaExp.compileBody(LambdaExp.java:1561)
at
gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1533)
at
gnu.expr.LambdaExp.compileChildMethods(LambdaExp.java:1422)
at
gnu.expr.ClassExp.compileChildMethods(ClassExp.java:573)
at
gnu.expr.Compilation.compileAll(Compilation.java:1615)
at
gnu.expr.Compilation.generate(Compilation.java:1589)
at
gnu.expr.Compilation.compile(Compilation.java:1557)
at
gnu.expr.Package.compileToFiles(Package.java:100)
at
bossa.modules.Package.finishCompilation(Package.java:367)
at bossa.modules.Package.link(Package.java:344)
at mlsub.compilation.fun.lambda26(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.lambda23(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:39)
at
bossa.modules.Compilation.compile(Compilation.nice)
at
nice.tools.compiler.console.fun.compile(main.nice:165)
at
nice.tools.compiler.console.dispatch.compile(Unknown
Source)
at
nice.tools.compiler.console.fun.main(main.nice:199)
at
nice.tools.compiler.console.dispatch.main(Unknown Source)
----------------------------------------------------------------------
>Comment By: Daniel Bonniot (bonniot)
Date: 2005-10-12 17:57
Message:
Logged In: YES
user_id=88952
I cannot reproduce this problem with the current development
version. Also, you were using 0.9.10, while 0.9.11 is
available, could you try with that one? I remember a similar
problem, so I suspect that this has already been fixed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1305247&group_id=12788
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl