summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-05-08 14:00:16 +0200
committerJason Zaugg <jzaugg@gmail.com>2014-05-08 14:00:16 +0200
commitb7f91a206cca9ab9bb87d0f7872ddf213ba10f82 (patch)
tree81e5681d1adf382e91a461346734ddf4b93d0f82 /src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
parentac8b44d731046691bda59439d25ab5ec23aaa56d (diff)
parentec05aeb3d6e414d2abf8354849eeaa7cc75ee477 (diff)
downloadscala-b7f91a206cca9ab9bb87d0f7872ddf213ba10f82.tar.gz
scala-b7f91a206cca9ab9bb87d0f7872ddf213ba10f82.tar.bz2
scala-b7f91a206cca9ab9bb87d0f7872ddf213ba10f82.zip
Merge commit 'ec05aeb' into topic/merge-2.10.x
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
index ea600bc586..d7cd92adf2 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
@@ -356,9 +356,13 @@ abstract class ClassfileParser {
// SI-5593 Scaladoc's current strategy is to visit all packages in search of user code that can be documented
// therefore, it will rummage through the classpath triggering errors whenever it encounters package objects
// that are not in their correct place (see bug for details)
- if (!settings.isScaladoc)
- warning(s"Class $name not found - continuing with a stub.")
- return NoSymbol.newClass(name.toTypeName)
+
+ // TODO More consistency with use of stub symbols in `Unpickler`
+ // - better owner than `NoSymbol`
+ // - remove eager warning
+ val msg = s"Class $name not found - continuing with a stub."
+ if (!settings.isScaladoc) warning(msg)
+ return NoSymbol.newStubSymbol(name.toTypeName, msg)
}
val completer = new loaders.ClassfileLoader(file)
var owner: Symbol = rootMirror.RootClass