Aladdin - Scala Bugtracking
[#463] project: nsc priority: medium category: bug
submitter assigned to status date submitted
Iulian _ fixed 2005-10-24 17:59:39.0
subject Repetitive methods introduced by bridges
code
abstract class SymTable extends A {
  def rootLoader: LazyType;
}

trait A: SymTable {
  class LazyType;
}

class Global extends SymTable {
  def rootLoader: LazyType = new LazyType();
}
what happened
Erasure will introduce a bridge method for 'rootLoader' because it thinks Global#LazyType is different than SymT\
able#LazyType. They are the same and we get identical methods which upset the JVM verifier.
what expected no bridge method in this case.
[back to overview]
Changes of this bug report
Iulian  edited on  2005-11-04 10:37:02.0