diff options
Diffstat (limited to 'src/detach/library')
-rw-r--r-- | src/detach/library/scala/remoting/Channel.scala | 6 | ||||
-rw-r--r-- | src/detach/library/scala/runtime/remoting/RegistryDelegate.scala | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/detach/library/scala/remoting/Channel.scala b/src/detach/library/scala/remoting/Channel.scala index ba3f3c31e0..541e45a477 100644 --- a/src/detach/library/scala/remoting/Channel.scala +++ b/src/detach/library/scala/remoting/Channel.scala @@ -51,7 +51,7 @@ class Channel protected (socket: Socket) { } catch { case e: Exception => - system.error("Class loader undefined: " + e.getMessage) + sys.error("Class loader undefined: " + e.getMessage) null } def classLoader: ClassLoader = cl @@ -82,7 +82,7 @@ class Channel protected (socket: Socket) { } catch { case e: IOException => - system.error("Input stream undefined: "+e.getMessage+" ("+this+")") + sys.error("Input stream undefined: "+e.getMessage+" ("+this+")") null } private lazy val out = @@ -91,7 +91,7 @@ class Channel protected (socket: Socket) { } catch { case e: IOException => - system.error("Output stream undefined: "+e.getMessage+" ("+this+")") + sys.error("Output stream undefined: "+e.getMessage+" ("+this+")") null } diff --git a/src/detach/library/scala/runtime/remoting/RegistryDelegate.scala b/src/detach/library/scala/runtime/remoting/RegistryDelegate.scala index baf4249bbe..814d50e910 100644 --- a/src/detach/library/scala/runtime/remoting/RegistryDelegate.scala +++ b/src/detach/library/scala/runtime/remoting/RegistryDelegate.scala @@ -62,7 +62,7 @@ import java.rmi.server.UnicastRemoteObject * Thread.sleep(Long.MAX_VALUE) * } <b>catch</b> { * <b>case</b> e: InterruptedException => // do nothing - * <b>case</b> e: Throwable => e.printStackTrace(); system.exit(1) + * <b>case</b> e: Throwable => e.printStackTrace(); sys.exit(1) * } * } while (<b>true</b>) * } @@ -115,14 +115,14 @@ object RMIDelegate { if (args.length > 0) { if (args(0) equals "-help") { println("Usage: rmidelegate <options> <port>") - system.exit(0) + sys.exit(0) } try { port = args(0).toInt } catch { case e: NumberFormatException => println("Usage: rmidelegate <options> <port>") - system.exit(1) + sys.exit(1) } val opts = args filter (_ startsWith "-J-D") for (opt <- opts) { @@ -149,7 +149,7 @@ object RMIDelegate { // do nothing case e: Throwable => e.printStackTrace() - system.exit(1) + sys.exit(1) } } while (true) } |