diff options
-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()); + } +} |