diff options
-rw-r--r-- | src/library/scala/collection/immutable/StringLike.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/immutable/StringLike.scala b/src/library/scala/collection/immutable/StringLike.scala index d989206a18..42ac5bb23b 100644 --- a/src/library/scala/collection/immutable/StringLike.scala +++ b/src/library/scala/collection/immutable/StringLike.scala @@ -223,10 +223,10 @@ self => if (s != null) s.toLowerCase match { case "true" => true case "false" => false - case _ => throw new NumberFormatException("For input string: \""+s+"\"") + case _ => throw new IllegalArgumentException("For input string: \""+s+"\"") } else - throw new NumberFormatException("For input string: \"null\"") + throw new IllegalArgumentException("For input string: \"null\"") override def toArray[B >: Char : ClassManifest]: Array[B] = toString.toCharArray.asInstanceOf[Array[B]] |