Aladdin - Scala Bugtracking
[#474] project: nsc priority: low category: bug
submitter assigned to status date submitted
Burak _ fixed 2005-11-05 15:30:24.0
subject incompatible class change error at runtime
code
object Test {
  def main(args:Array[String]) = {
    val x = new scala.collection.mutable.ArrayBuffer[int]() + 1;
    x.toList;
    {}
  }
}
what happened
[emir@lamppc31 /tmp]$ ns -cp . Test
Exception in thread "main" java.lang.IncompatibleClassChangeError
        at scala.Iterator$class.toList(/localhome/buraq/scala/sources/scala/Iterator.scala:423)
        at scala.collection.mutable.ResizableArray$$anon0.toList(/localhome/buraq/scala/sources/scala/collection\
/mutable/ResizableArray.scala:59)
        at scala.Seq$class.toList(/localhome/buraq/scala/sources/scala/Seq.scala:173)
        at scala.collection.mutable.ArrayBuffer.toList(/localhome/buraq/scala/sources/scala/collection/mutable/A\
rrayBuffer.scala:20)
        at Test$.main(abuf.scala:2)
        at Test.main(abuf.scala)
what expected no error
[back to overview]
Changes of this bug report
Iulian  edited on  2005-11-05 17:31:07.0
I cannot reproduce it. On my system I get a JVM crash:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xb37c6ac9, pid=11829, tid=3085440704
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_09-b05 mixed mode)
# Problematic frame:
#
[error occurred during error reporting, step 60, id 0xb]
Iulian  edited on  2005-11-07 15:09:01.0
I fixed the bug, now it runs fine on my machine. Burak, could you please check it on yours, given that the error was different on my system?