diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-02-23 16:46:33 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-02-23 16:46:33 +0000 |
commit | b47d0130f63c49157b17b7a911a2f9cb7d459c7d (patch) | |
tree | 16a828e4757a090c84f20b08baf332dc8b12bedf | |
parent | 787f4bce331af61c64c4e72b5fef99e38bf1cc74 (diff) | |
download | scala-b47d0130f63c49157b17b7a911a2f9cb7d459c7d.tar.gz scala-b47d0130f63c49157b17b7a911a2f9cb7d459c7d.tar.bz2 scala-b47d0130f63c49157b17b7a911a2f9cb7d459c7d.zip |
-rw-r--r-- | src/compiler/scala/tools/nsc/util/ClassPath.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/util/ClassPath.scala b/src/compiler/scala/tools/nsc/util/ClassPath.scala index 6fe28e1431..e99e9646f2 100644 --- a/src/compiler/scala/tools/nsc/util/ClassPath.scala +++ b/src/compiler/scala/tools/nsc/util/ClassPath.scala @@ -57,7 +57,6 @@ class ClassPath(onlyPresentation: Boolean) { 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(name0, isDir); @@ -176,8 +175,8 @@ class ClassPath(onlyPresentation: Boolean) { def lookupPath(path: String, isDir: Boolean) = { val ctx = root.find(path, isDir) - System.err.println("CTX=" + ctx); - if (ctx.entries.isEmpty) null + if (ctx == null) null + else if (ctx.entries.isEmpty) null else if (ctx.entries.head == null) null; else ctx.entries.head.location } |