diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-02-23 16:26:44 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-02-23 16:26:44 +0000 |
commit | 787f4bce331af61c64c4e72b5fef99e38bf1cc74 (patch) | |
tree | 23372aea63bc44a2e2c9aca41db65bac7c334e6a /src | |
parent | 9272c30317d99c74137a9506627cac29db40b660 (diff) | |
download | scala-787f4bce331af61c64c4e72b5fef99e38bf1cc74.tar.gz scala-787f4bce331af61c64c4e72b5fef99e38bf1cc74.tar.bz2 scala-787f4bce331af61c64c4e72b5fef99e38bf1cc74.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/util/ClassPath.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/util/ClassPath.scala b/src/compiler/scala/tools/nsc/util/ClassPath.scala index bec73b63ca..6fe28e1431 100644 --- a/src/compiler/scala/tools/nsc/util/ClassPath.scala +++ b/src/compiler/scala/tools/nsc/util/ClassPath.scala @@ -56,8 +56,10 @@ class ClassPath(onlyPresentation: Boolean) { else { val ret = find0(entries.tail); val head = entries.head; + val name0 = name + (if (!isDir) ".class" else ""); + System.err.println("LOOKUP: " + name0 + " in " + head.location); val clazz = if (head.location == null) null; - else head.location.lookupPath(name + (if (!isDir) ".class" else ""), isDir); + else head.location.lookupPath(name0, isDir); val source0 = if (head.source == null) null; else { val source1 = head.source.location.lookupPath( @@ -77,9 +79,6 @@ class ClassPath(onlyPresentation: Boolean) { } } val ret = find0(entries); - if (false && this.toString().indexOf("scala") != -1) - System.err.println("FIND " + name + " in " + this + " => " + ret); - if (ret.entries.isEmpty) { System.err.println("BAD_FILE: " + name + " in " + this) null |