From 2d487cd460dd5b5064383ebf968d6fb47c7c696d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 20 Jan 2010 05:51:12 +0000 Subject: Removed static state from global object ClassPa... Removed static state from global object ClassPath object, and some minor repositioning while in there. Closes #2928, but the intentions behind -optimise being intertwined with ClassPath could really use some source comments. Review by rytz. --- src/scalap/scala/tools/scalap/Main.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/scalap') diff --git a/src/scalap/scala/tools/scalap/Main.scala b/src/scalap/scala/tools/scalap/Main.scala index 59c46df25f..dcc028d489 100644 --- a/src/scalap/scala/tools/scalap/Main.scala +++ b/src/scalap/scala/tools/scalap/Main.scala @@ -265,9 +265,9 @@ object Main { val path = arguments.getArgument("-classpath") match { case None => arguments.getArgument("-cp") match { case None => EmptyClasspath - case Some(path) => new JavaClassPath("", "", path, "", "") + case Some(path) => new JavaClassPath("", "", path, "", "", false) } - case Some(path) => new JavaClassPath("", "", path, "", "") + case Some(path) => new JavaClassPath("", "", path, "", "", false) } // print the classpath if output is verbose if (verbose) { @@ -287,5 +287,6 @@ object Main { val classes: List[ClassRep[AbstractFile]] = Nil val packages: List[ClassPath[AbstractFile]] = Nil val sourcepaths: List[AbstractFile] = Nil + def isOptimized = false } } -- cgit v1.2.3