diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-11-16 16:45:46 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-11-16 16:45:46 +0000 |
commit | 358371050ddb042db59e4ee932e582a5f2cc687e (patch) | |
tree | 141cb6c811d00585a5b8b89c2c28db16419748e6 /sources | |
parent | 18b44350ef5670d58504462395dbdb6ca082f8bc (diff) | |
download | scala-358371050ddb042db59e4ee932e582a5f2cc687e.tar.gz scala-358371050ddb042db59e4ee932e582a5f2cc687e.tar.bz2 scala-358371050ddb042db59e4ee932e582a5f2cc687e.zip |
Initial commit.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/runtime/compat/Platform.scala | 11 |
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()); + } +} |