Aladdin - Scala Bugtracking
[#1110] project: compiler priority: low category: bug
submitter assigned to status date submitted
Adriaan Adriaan open 2007-05-15 14:24:20.0
subject weird interaction between -Xgenerics and repeated classOf
code
  object A {
    val x = classOf[String]
  }

  object B {
    val y = classOf[String]
  }
what happened
I thought I fixed it in RC2, but it's reappeared so I decided to do the right thing and add a report. Originally\
 reported by Rickard Nilsson.

Exception in thread "main" java.lang.AssertionError: assertion failed: Class.this.type.type T_forName1 does no l\
onger exist, phase = parser
        at scala.Predef$.assert(Predef.scala:90)
        at scala.tools.nsc.symtab.Types$adaptToNewRunMap$.adaptToNewRun(Types.scala:2180)
        at scala.tools.nsc.symtab.Types$adaptToNewRunMap$.apply(Types.scala:2213)
        at scala.tools.nsc.symtab.Types$adaptToNewRunMap$.apply(Types.scala:2168)
        at scala.List$.loop$0(List.scala:243)
        at scala.List$.mapConserve(List.scala:260)
        at scala.tools.nsc.symtab.Types$adaptToNewRunMap$.apply(Types.scala:2212)
        at scala.tools.nsc.symtab.Types$adaptToNewRunMap$.apply(Types.scala:2168)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:1821)
        at scala.tools.nsc.symtab.Types$adaptToNewRunMap$.apply(Types.scala:2234)
        at scala.tools.nsc.symtab.Symbols$Symbol.adaptToNewRun$0(Symbols.scala:504)
        at scala.tools.nsc.symtab.Symbols$Symbol.adaptInfos(Symbols.scala:508)
        at scala.tools.nsc.symtab.Symbols$Symbol.adaptInfos(Symbols.scala:500)
        at scala.tools.nsc.symtab.Symbols$Symbol.rawInfo(Symbols.scala:467)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:424)
        at scala.tools.nsc.symtab.Symbols$Symbol.tpe(Symbols.scala:392)
        at scala.tools.nsc.symtab.Symbols$Symbol.tpeHK(Symbols.scala:540)
        at scala.tools.nsc.symtab.Types$Type.memberType(Types.scala:325)
what expected compiles ok
[back to overview]
Changes of this bug report