[ 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 12:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=892041&group_id=12788

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Isaac Gouy (igouy)
Assigned to: Nobody/Anonymous (nobody)
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)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=892041&group_id=12788


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.