Aladdin - Scala Bugtracking
[#103] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Matthias Philippe fixed 2003-09-02 21:58:08.0
subject Uninitialized variables of type Byte, Char, Short crash Erasure
code
object T {
  var b: Byte = _;
}
what happened
Exception in thread "main" scalac.ApplicationError: method type required: UnboxedType(10)
        at scalac.ast.TreeGen.Apply(TreeGen.java:431)
        at scalac.ast.TreeGen.Apply(TreeGen.java:435)
        at scalac.transformer.Erasure.cast(Erasure.java:212)
        at scalac.transformer.Erasure.coerce(Erasure.java:179)
        at scalac.transformer.Erasure.transform(Erasure.java:618)
        at scalac.transformer.Erasure.transform(Erasure.java:353)
        at scalac.transformer.Erasure.transform(Erasure.java:558)
        at scalac.ast.Transformer.transform(Transformer.java:276)
        at scalac.transformer.Erasure.transform(Erasure.java:567)
        at scalac.transformer.Erasure.transform(Erasure.java:336)
        at scalac.transformer.Erasure.transform(Erasure.java:558)
        at scalac.ast.Transformer.transform(Transformer.java:276)
        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 Compiles.
[back to overview]
Changes of this bug report
Matthias  edited on  2003-09-24 15:38:37.0