Aladdin - Scala Bugtracking
[#125] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Matthias Philippe fixed 2003-09-10 16:59:08.0
subject new Array[Any] crashes Erasure
code
class C {
  val xs = new Array[Any](1);
}
what happened
Exception in thread "main" scalac.ApplicationError:
  illegal case: TypeRef(ThisType(scala),scala.Array,[])
        at scalac.util.Debug.abort(Debug.java:57)
        at scalac.transformer.Erasure.transform(Erasure.java:406)
        at scalac.transformer.Erasure.transform(Erasure.java:559)
        at scalac.transformer.Erasure.transform(Erasure.java:619)
        at scalac.transformer.Erasure.transform(Erasure.java:353)
        at scalac.transformer.Erasure.transform(Erasure.java:559)
        at scalac.ast.Transformer.transform(Transformer.java:276)
        at scalac.transformer.Erasure.transform(Erasure.java:568)
        at scalac.transformer.Erasure.transform(Erasure.java:336)
        at scalac.transformer.Erasure.transform(Erasure.java:559)
        at scalac.ast.Transformer.transform(Transformer.java:281)
        at scalac.transformer.Erasure.apply(Erasure.java:63)
        at scalac.ast.Transformer.apply(Transformer.java:62)
        at scalac.transformer.ErasurePhase.apply(ErasurePhase.java:51)
        at scalac.Global.compile(Global.java:293)
        at scalac.Global.compile(Global.java:266)
        at scalac.Main.main(Main.java:32)
what expected No crash.
[back to overview]
Changes of this bug report
Matthias  edited on  2003-09-10 23:10:31.0
Philippe's fix solved the problem.