summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-11-16 16:45:46 +0000
committermihaylov <mihaylov@epfl.ch>2004-11-16 16:45:46 +0000
commit358371050ddb042db59e4ee932e582a5f2cc687e (patch)
tree141cb6c811d00585a5b8b89c2c28db16419748e6
parent18b44350ef5670d58504462395dbdb6ca082f8bc (diff)
downloadscala-358371050ddb042db59e4ee932e582a5f2cc687e.tar.gz
scala-358371050ddb042db59e4ee932e582a5f2cc687e.tar.bz2
scala-358371050ddb042db59e4ee932e582a5f2cc687e.zip
Initial commit.
-rw-r--r--sources/scala/runtime/compat/Platform.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/sources/scala/runtime/compat/Platform.scala b/sources/scala/runtime/compat/Platform.scala
new file mode 100644
index 0000000000..1a6be6cf5a
--- /dev/null
+++ b/sources/scala/runtime/compat/Platform.scala
@@ -0,0 +1,11 @@
+package scala.runtime.compat;
+
+object Platform {
+ def getClass(obj: AnyRef) = obj.getClass();
+ def getClassName(obj: AnyRef) = obj.getClass().getName();
+ def printStackTrace(exc: java.lang.Exception) = exc.printStackTrace();
+ def getMessage(exc: java.lang.Exception) = exc.getMessage();
+ def split(str: String, separator: Char): Array[String] = {
+ str.split(separator.toString());
+ }
+}