Aladdin - Scala Bugtracking
[#981] project: api priority: medium category: bug
submitter assigned to status date submitted
Stephane _ fixed 2007-03-07 18:50:16.0
subject Runtime exceptions in immutable.BitSet
code
object Main extends Application {
  import scala.collection.immutable.BitSet
  val s = new BitSet(8, 8, Array(), false) // null, false)
  Console.println("s = " + s)
}
what happened
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at scala.collection.BitSet.contains(BitSet.scala:39)
what expected prints out "s = Set()"
[back to overview]
Changes of this bug report
Stephane  edited on  2007-03-07 18:50:46.0
Also fixed method 'toArray' in immutable.BitSet
Stephane  edited on  2007-03-07 19:03:23.0