Aladdin - Scala Bugtracking
[#315] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Nikolay Martin fixed 2004-03-30 12:26:27.0
subject [contrib #26] compiler crash when mixing in ObservableSet
code
import scala.collection.mutable._;

class Bug
extends HashSet[Int]
with ObservableSet[Int,Bug];
what happened
$ scalac Bug.scala
Exception in thread "main" java.lang.AssertionError
        at scalac.symtab.classfile.UnPickle.getType(UnPickle.java:382)
        at scalac.symtab.classfile.UnPickle.readTypeRefs(UnPickle.java:449)
        at scalac.symtab.classfile.UnPickle.readTypeRefs(UnPickle.java:433)
        at scalac.symtab.classfile.UnPickle.getType(UnPickle.java:377)
        at scalac.symtab.classfile.UnPickle.readTypeRefs(UnPickle.java:449)
        at scalac.symtab.classfile.UnPickle.readTypeRefs(UnPickle.java:450)
        at scalac.symtab.classfile.UnPickle.readTypeRefs(UnPickle.java:450)
        at scalac.symtab.classfile.UnPickle.readTypeRefs(UnPickle.java:433)
        at scalac.symtab.classfile.UnPickle.getType(UnPickle.java:383)
        at scalac.symtab.classfile.UnPickle.getSymbol(UnPickle.java:269)
        at scalac.symtab.classfile.UnPickle.(UnPickle.java:88)
        at scalac.symtab.classfile.UnPickle.parse(UnPickle.java:44)
        at scalac.symtab.classfile.AttributeParser.readAttribute(AttributeParser.java:109)
        at scalac.symtab.classfile.AttributeParser.readAttributes(AttributeParser.java:96)
        at scalac.symtab.classfile.ClassfileParser.parse(ClassfileParser.java:138)
        at scalac.symtab.classfile.ClassfileParser.parse(ClassfileParser.java:97)
        at scalac.symtab.classfile.ClassParser.doComplete(ClassParser.java:42)
        at scalac.symtab.SymbolLoader.complete(SymbolLoader.java:69)
        at scalac.symtab.Symbol.info(Symbol.java:1045)
        at scalac.symtab.TypeSymbol.typeParams(Symbol.java:1665)
        at scala.tools.scalac.typechecker.Analyzer$class.scala$tools$scalac$typechecker$Analyzer$transform1(Anal\
yzer.scala:2940)
        at scala.tools.scalac.typechecker.Analyzer$class.scala$tools$scalac$typechecker$Analyzer$transform0(Anal\
yzer.scala:2226)
        at scala.tools.scalac.typechecker.Analyzer$class.scala$tools$scalac$typechecker$Analyzer$access$scala$to\
ols$scalac$typechecker$Analyzer$transform0(Analyzer.scala:2106)
        at scala.tools.scalac.typechecker.Analyzer$$anon$54.apply(Analyzer.scala:2092)
        at scala.tools.scalac.typechecker.Analyzer$$anon$54.apply(Analyzer.scala:2092)
        at scala.runtime.ResultOrException.tryBlock(ResultOrException.java:34)
        at scala.runtime.ScalaRunTime$.Try(ScalaRunTime.scala:19)
        at scala.tools.scalac.typechecker.Analyzer$class.transform(Analyzer.scala:2091)
        at scala.tools.scalac.typechecker.Analyzer$class.transform(Analyzer.scala:2024)
        at scala.tools.scalac.typechecker.Analyzer$class.scala$tools$scalac$typechecker$Analyzer$transform1(Anal\
yzer.scala:2586)
        at scala.tools.scalac.typechecker.Analyzer$class.scala$tools$scalac$typechecker$Analyzer$transform0(Anal\
yzer.scala:2226)
        at scala.tools.scalac.typechecker.Analyzer$class.scala$tools$scalac$typechecker$Analyzer$access$scala$to\
ols$scalac$typechecker$Analyzer$transform0(Analyzer.scala:2106)
        at scala.tools.scalac.typechecker.Analyzer$$anon$54.apply(Analyzer.scala:2092)
        at scala.tools.scalac.typechecker.Analyzer$$anon$54.apply(Analyzer.scala:2092)
        at scala.runtime.ResultOrException.tryBlock(ResultOrException.java:34)
        at scala.runtime.ScalaRunTime$.Try(ScalaRunTime.scala:19)
        at scala.tools.scalac.typechecker.Analyzer$class.transform(Analyzer.scala:2091)
        at scala.tools.scalac.typechecker.Analyzer$class.transform(Analyzer.scala:2024)
        at scala.tools.scalac.typechecker.Analyzer$class.transformConstrInvocations(Analyzer.scala:1810)
        at scala.tools.scalac.typechecker.Analyzer$class.defineTemplate(Analyzer.scala:1287)
        at scala.tools.scalac.typechecker.Analyzer$$anon$49.apply(Analyzer.scala:1144)
        at scala.tools.scalac.typechecker.Analyzer$$anon$49.apply(Analyzer.scala:1116)
        at scala.runtime.ResultOrException.tryBlock(ResultOrException.java:34)
        at scala.runtime.ScalaRunTime$.Try(ScalaRunTime.scala:19)
        at scala.tools.scalac.typechecker.Analyzer$class.defineSym(Analyzer.scala:1116)
        at scala.tools.scalac.typechecker.Analyzer$LazyTreeType$class.complete(Analyzer.scala:688)
        at scalac.symtab.Symbol.info(Symbol.java:1045)
        at scalac.symtab.Symbol.initialize(Symbol.java:1011)
        at scala.tools.scalac.typechecker.Analyzer$class.transform(Analyzer.scala:2089)
        at scala.tools.scalac.typechecker.Analyzer$class.transform(Analyzer.scala:2043)
        at scala.tools.scalac.typechecker.Analyzer$class.transformStatSeq(Analyzer.scala:1792)
        at scala.tools.scalac.typechecker.Analyzer$class.apply(Analyzer.scala:129)
        at scalac.ast.Transformer.apply(Transformer.java:64)
        at scala.tools.scalac.typechecker.Analyzer$class.apply(Analyzer.scala:63)
        at scala.tools.scalac.typechecker.AnalyzerPhase$class.apply(AnalyzerPhase.scala:61)
        at scalac.Global.compile(Global.java:385)
        at scalac.Global.compile(Global.java:356)
        at scala.tools.scalac.Main$.main1(Main.scala:35)
        at scala.tools.scalac.Main$.main(Main.scala:27)
        at scala.tools.scalac.Main.main(Main.scala:27)
what expected Silent compilation
[back to overview]
Changes of this bug report
Nikolay  edited on  2004-03-30 12:29:07.0
Transferred from the bug contribution page and assigned it to Martin
Martin  edited on  2004-04-08 19:22:43.0