[ nice-Bugs-892041 ] compiler failure: abstract class recursive type
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #892041, was opened at 2004-02-06 21:04
Message generated for change (Settings changed) made by bonniot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=892041&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 failure: abstract class recursive type
Initial Comment:
abstract class Shape<T> {}
<Shape S, ST, T | S<ST> <: T <: S<ST> >
class Translated<T> extends Shape {
T someShape;
}
\Test>nicec --sourcepath .. -a t.jar test
nice.lang: parsing
test: parsing
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.ArrayIndexOutOfBoundsException: 1
at
bossa.syntax.NiceClass.getParentConstructorParameters
(NiceClass.java:705)
at
bossa.syntax.NiceClass.getConstructorParameters
(NiceClass.java:745)
at
bossa.syntax.NiceClass.createDefaultConstructors
(NiceClass.java:809)
at bossa.syntax.NiceClass.resolveClass
(NiceClass.java:406)
at bossa.syntax.ClassDefinition.resolveClass
(ClassDefinition.java:538)
at bossa.syntax.ClassDefinition$Class.resolveClass
(ClassDefinition.java:293)
at bossa.syntax.ClassDefinition.resolve
(ClassDefinition.java:513)
at bossa.syntax.Node.doResolve(Node.java:261)
at bossa.syntax.AST.resolve(AST.java:99)
at bossa.syntax.AST.resolveScoping
(AST.java:116)
at bossa.modules.Package.load(Package.java:248)
at mlsub.compilation.fun.lambda24(load.nice:24)
at mlsub.compilation.fun.apply1(make.nice:0)
at gnu.expr.ModuleMethod.apply1
(ModuleMethod.java:89)
at nice.lang.fun.foreach(collections.nice:129)
at nice.lang.dispatch.foreach(strings.nice:0)
at mlsub.compilation.fun.loadComponent
(load.nice:24)
at mlsub.compilation.dispatch.loadComponent
(~/automated/tester/builds/Nice/classes/mlsub/compilati
on)
at mlsub.compilation.fun$load.lambda22
(load.nice:45)
at mlsub.compilation.fun$load.apply1(load.nice:0)
at gnu.expr.ModuleMethod.apply1
(ModuleMethod.java:89)
at nice.lang.fun.foreach(collections.nice:129)
at nice.lang.dispatch.foreach(strings.nice:0)
at mlsub.compilation.fun.load(load.nice:44)
at mlsub.compilation.dispatch.load
(~/automated/tester/builds/Nice/classes/mlsub/compilati
on)
at mlsub.compilation.fun.make(make.nice:41)
at mlsub.compilation.dispatch.make
(~/automated/tester/builds/Nice/classes/mlsub/compilati
on)
at nice.tools.compiler.fun.compile
(interface.nice:41)
at nice.tools.compiler.dispatch.compile
(~/automated/tester/builds/Nice/classes/nice/tools/comp
iler)
at nice.tools.compiler.console.fun.compile
(main.nice:168)
at nice.tools.compiler.console.dispatch.compile
(~/automated/tester/builds/Nice/classes/nice/tools/comp
iler/console)
at nice.tools.compiler.console.fun.main
(main.nice:184)
----------------------------------------------------------------------
Comment By: Isaac Gouy (igouy)
Date: 2004-02-06 21:06
Message:
Logged In: YES
user_id=536291
Nice compiler version 0.9.6 prerelease (build 2004.02.06,
15:18:45 UTC)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=892041&group_id=12788
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click