diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-05-08 14:00:16 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-05-08 14:00:16 +0200 |
commit | b7f91a206cca9ab9bb87d0f7872ddf213ba10f82 (patch) | |
tree | 81e5681d1adf382e91a461346734ddf4b93d0f82 /src/compiler/scala/tools/nsc/symtab/classfile | |
parent | ac8b44d731046691bda59439d25ab5ec23aaa56d (diff) | |
parent | ec05aeb3d6e414d2abf8354849eeaa7cc75ee477 (diff) | |
download | scala-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')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 10 |
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 |