Closed scabug closed 9 years ago
Imported From: https://issues.scala-lang.org/browse/SI-9024?orig=1 Reporter: Jiezhen Yi (Jiezhen)
@kanielc said (edited on Dec 5, 2014 6:06:42 AM UTC): Judging by the spec of the Java TreeSet, this seems consistent. With natural ordering, asking for null should throw a NPE. You can provide a custom null aware Ordering.
val set2 = new scala.collection.immutable.TreeSetString
Jiezhen Yi (Jiezhen) said: Mark as won't fix.
Run the following under 2.11.0. It throws null point exception as well for 2.10.4 and 2.9.3 although the implementation has been changed.