Aladdin - Scala Bugtracking
[#497] project: nsc priority: low category: bug
submitter assigned to status date submitted
Burak Martin fixed 2005-11-23 17:37:15.0
subject nsc crashes on enumerations
code
// see test-nsc/files/run/enumerations.scala

/** Enumerations */
object Test extends Enumeration {

  val RBRACE     = Value("}");

  def main(args:Array[String]): Unit = Console.println("RBRACE = "+RBRACE);
}
what happened
$nsc -d . enums.scala
$ns -cp . Test
 Exception in thread "main" java.lang.NoSuchMethodError: scala.Enumeration$Value$class.$init$(Lscala/Enumeration\
$Value;Lscala/Enumeration;)V     at scala.Enumeration$Val.<init>(/localhome/buraq/scala/sources/scala/Enumera\
tion.scala:13)
       at scala.Enumeration.Value(/localhome/buraq/scala/sources/scala/Enumeration.scala:111)
       at Test$.<init>(enumerations.scala:166:80)
       at Test$.<clinit>(enumerations.scala:166)
       at Test.main(enumerations.scala:166)
what expected RBRACE { printed
[back to overview]
Changes of this bug report
Burak  edited on  2005-11-23 17:37:57.0
escaped < characters
Burak  edited on  2005-11-23 17:38:22.0
Burak  edited on  2005-11-23 17:38:28.0
Burak  edited on  2005-11-23 17:38:52.0
Burak  edited on  2005-11-23 17:57:05.0
a no bug, was fixed before as Iulian pointed out, just my nslib that was not recompiled after merging the changes.