diff options
author | mihaylov <mihaylov@epfl.ch> | 2007-02-07 14:03:28 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2007-02-07 14:03:28 +0000 |
commit | 60b6ba084f25042e6e92e6506eaf28aa598dc097 (patch) | |
tree | 9c89a051717735253d2d9c28102f36882606f975 /src | |
parent | 29162dae261e4fd3281a2b0e4eccda55f58db144 (diff) | |
download | scala-60b6ba084f25042e6e92e6506eaf28aa598dc097.tar.gz scala-60b6ba084f25042e6e92e6506eaf28aa598dc097.tar.bz2 scala-60b6ba084f25042e6e92e6506eaf28aa598dc097.zip |
small portability fixes to the library
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/runtime/BoxedAnyArray.scala | 2 | ||||
-rw-r--r-- | src/library/scala/runtime/BoxedObjectArray.scala | 2 | ||||
-rw-r--r-- | src/library/scala/runtime/NonLocalReturnException.scala | 2 | ||||
-rw-r--r-- | src/library/scala/testing/SUnit.scala | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/src/library/scala/runtime/BoxedAnyArray.scala b/src/library/scala/runtime/BoxedAnyArray.scala index 431b3f0be5..7bfe01d60e 100644 --- a/src/library/scala/runtime/BoxedAnyArray.scala +++ b/src/library/scala/runtime/BoxedAnyArray.scala @@ -12,7 +12,7 @@ package scala.runtime -import Predef.Class +import Predef._ import compat.Platform /** diff --git a/src/library/scala/runtime/BoxedObjectArray.scala b/src/library/scala/runtime/BoxedObjectArray.scala index e60cf7f585..c1596d0949 100644 --- a/src/library/scala/runtime/BoxedObjectArray.scala +++ b/src/library/scala/runtime/BoxedObjectArray.scala @@ -12,7 +12,7 @@ package scala.runtime -import Predef.Class +import Predef._ import compat.Platform.createArray [serializable] diff --git a/src/library/scala/runtime/NonLocalReturnException.scala b/src/library/scala/runtime/NonLocalReturnException.scala index 8043b6de81..ee3125f424 100644 --- a/src/library/scala/runtime/NonLocalReturnException.scala +++ b/src/library/scala/runtime/NonLocalReturnException.scala @@ -12,4 +12,6 @@ package scala.runtime +import Predef.RuntimeException + class NonLocalReturnException[T](val key: AnyRef, val value: T) extends RuntimeException diff --git a/src/library/scala/testing/SUnit.scala b/src/library/scala/testing/SUnit.scala index dfacdf48a0..95ed2326e1 100644 --- a/src/library/scala/testing/SUnit.scala +++ b/src/library/scala/testing/SUnit.scala @@ -125,7 +125,7 @@ object SUnit { } /** an AssertFailed is thrown for a failed assertion */ - case class AssertFailed(msg: String) extends java.lang.RuntimeException { + case class AssertFailed(msg: String) extends RuntimeException { override def toString() = "failed assertion:" + msg } |