From 29a41bcff5804c52a561e804d3a7885c3df49a16 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 9 Jul 2008 10:54:17 +0000 Subject: change in ObjectRunner to avoid the warnings. --- src/compiler/scala/tools/nsc/ObjectRunner.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/scala/tools/nsc/ObjectRunner.scala') diff --git a/src/compiler/scala/tools/nsc/ObjectRunner.scala b/src/compiler/scala/tools/nsc/ObjectRunner.scala index befdddef9b..3644fb7297 100644 --- a/src/compiler/scala/tools/nsc/ObjectRunner.scala +++ b/src/compiler/scala/tools/nsc/ObjectRunner.scala @@ -67,12 +67,12 @@ object ObjectRunner { case None => throw new ClassNotFoundException(objectName) } - val method = clsToRun.getMethod("main", List(classOf[Array[String]]).toArray) + val method = clsToRun.getMethod("main", classOf[Array[String]]) if ((method.getModifiers & Modifier.STATIC) == 0) throw new NoSuchMethodException(objectName + ".main is not static") withContextClassLoader(loader) { - method.invoke(null, List(arguments.toArray).toArray) + method.invoke(null, List(arguments.toArray).toArray: _*) } } } -- cgit v1.2.3