diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/enums.scala | 2 | ||||
-rw-r--r-- | test/files/run/exceptions.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/enums.scala b/test/files/run/enums.scala index 239e2944d4..1fd7dfb6c4 100644 --- a/test/files/run/enums.scala +++ b/test/files/run/enums.scala @@ -64,7 +64,7 @@ object Test { } catch { case exception: Throwable => { Console.print(" raised exception " + exception); - compat.Platform.printStackTrace(exception); + exception.printStackTrace(); } } Console.println; diff --git a/test/files/run/exceptions.scala b/test/files/run/exceptions.scala index 82740cc74d..37516737a2 100644 --- a/test/files/run/exceptions.scala +++ b/test/files/run/exceptions.scala @@ -33,7 +33,7 @@ object exceptions { val value = try { map.lookup(key) } catch { - case e => compat.Platform.getMessage(e) + case e => e.getMessage() } check("lookup(" + key + ")", value, "KO"); } |