[ nice-Bugs-860436 ] compiler error - array of method tuples
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #860436, was opened at 2003-12-15 08:38
Message generated for change (Comment added) made by igouy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=860436&group_id=12788
Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Isaac Gouy (igouy)
Assigned to: Daniel Bonniot (bonniot)
Summary: compiler error - array of method tuples
Initial Comment:
Nice compiler version 0.9.5 (build 2003.12.11, 18:51:27
UTC)
class Test {
(Test->boolean, Test->int)[] a = [ (f,x), (f,y)];
boolean f() = true;
int x() = 1;
int y() = 2;
}
I:\pls\Nice\Test>nicec --sourcepath .. -a t.jar test
nice.lang: parsing
test: parsing
test: typechecking
test: generating code
test: 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:
java.lang.NullPointerException
at gnu.bytecode.CodeAttr.emitInvokeMethod
(CodeAttr.java:1061)
at gnu.bytecode.CodeAttr.emitInvokeSpecial
(CodeAttr.java:1136)
at gnu.expr.LambdaExp.generateClassInit
(LambdaExp.java:1177)
at gnu.expr.Compilation.compileAll
(Compilation.java:1604)
at gnu.expr.Compilation.generate
(Compilation.java:1571)
at gnu.expr.Compilation.compile
(Compilation.java:1539)
at gnu.expr.Package.compileToFiles
(Package.java:100)
at bossa.modules.Package.finishCompilation
(Package.java:363)
at bossa.modules.Package.link(Package.java:342)
at mlsub.compilation.fun.lambda18
(~/automated/tester/builds/Nice/src/mlsub/compilation:1
3)
at mlsub.compilation.fun.apply1
(~/automated/tester/builds/Nice/src/mlsub/compilation)
at gnu.expr.ModuleMethod.apply1
(ModuleMethod.java:89)
at nice.lang.fun.foreach
(~/automated/tester/builds/Nice/stdlib/nice/lang:331)
at nice.lang.dispatch.foreach
(~/automated/tester/builds/Nice/classes/nice/lang)
at mlsub.compilation.fun.compileComponent
(~/automated/tester/builds/Nice/src/mlsub/compilation:1
3)
at mlsub.compilation.dispatch.compileComponent
(~/automated/tester/builds/Nice/classes/mlsub/compilati
on)
at mlsub.compilation.fun$make.lambda15(Unknown
Source)
at mlsub.compilation.fun$make.apply1(Unknown
Source)
at gnu.expr.ModuleMethod.apply1
(ModuleMethod.java:89)
at nice.lang.fun.foreach
(~/automated/tester/builds/Nice/stdlib/nice/lang:331)
at nice.lang.dispatch.foreach
(~/automated/tester/builds/Nice/classes/nice/lang)
at mlsub.compilation.fun.make
(~/automated/tester/builds/Nice/src/mlsub/compilation:4
)
at mlsub.compilation.dispatch.make
(~/automated/tester/builds/Nice/classes/mlsub/compilati
on)
at nice.tools.compiler.fun.compile
(~/automated/tester/builds/Nice/src/nice/tools/compiler:
112)
at nice.tools.compiler.dispatch.compile
(~/automated/tester/builds/Nice/classes/nice/tools/comp
iler)
at nice.tools.compiler.console.fun.compile
(~/automated/tester/builds/Nice/src/nice/tools/compiler/
console:160)
at nice.tools.compiler.console.dispatch.compile
(~/automated/tester/builds/Nice/classes/nice/tools/comp
iler/console)
at nice.tools.compiler.console.fun.main
(~/automated/tester/builds/Nice/src/nice/tools/compiler/
console:24)
----------------------------------------------------------------------
>Comment By: Isaac Gouy (igouy)
Date: 2003-12-15 13:23
Message:
Logged In: YES
user_id=536291
Now works fine on the test problem.
I already re-wrote the bigger problem, thanks.
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2003-12-15 11:55
Message:
Logged In: YES
user_id=88952
I think this is fixed in CVS and in the development version.
Could you try it (probably with the larger code that
revealed the bug), and confirm it is working?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=860436&group_id=12788
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/