diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-07-26 09:19:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-26 09:19:15 +0200 |
commit | 4bc9ca51a4b016bdb9c24a7bcb776ae8d5de9436 (patch) | |
tree | a05d59fe98483f591320161f9471a01082b21021 | |
parent | 1e7ce6e774f2428356887d71870557b67062ef7f (diff) | |
parent | caeedcf7f158cb7043e988d0a0ce7a216d973237 (diff) | |
download | scala-4bc9ca51a4b016bdb9c24a7bcb776ae8d5de9436.tar.gz scala-4bc9ca51a4b016bdb9c24a7bcb776ae8d5de9436.tar.bz2 scala-4bc9ca51a4b016bdb9c24a7bcb776ae8d5de9436.zip |
Merge pull request #5297 from retronym/review/5268
Disable stub warning by default.
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 2 | ||||
-rw-r--r-- | test/files/run/t7439.check | 2 | ||||
-rw-r--r-- | test/files/run/t8442.check | 2 | ||||
-rw-r--r-- | test/files/run/t9268.check | 3 |
4 files changed, 4 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala index 0533d420cd..f8c1a0d082 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala @@ -366,7 +366,7 @@ abstract class ClassfileParser { // - better owner than `NoSymbol` // - remove eager warning val msg = s"Class $name not found - continuing with a stub." - if (!settings.isScaladoc) warning(msg) + if ((!settings.isScaladoc) && (settings.verbose || settings.developer)) warning(msg) return NoSymbol.newStubSymbol(name.toTypeName, msg) } val completer = new loaders.ClassfileLoader(file) diff --git a/test/files/run/t7439.check b/test/files/run/t7439.check index 9ea09f9c40..b95884311a 100644 --- a/test/files/run/t7439.check +++ b/test/files/run/t7439.check @@ -1,2 +1,2 @@ Recompiling after deleting t7439-run.obj/A_1.class -pos: NoPosition Class A_1 not found - continuing with a stub. WARNING + diff --git a/test/files/run/t8442.check b/test/files/run/t8442.check index ce9e8b52ff..8b13789179 100644 --- a/test/files/run/t8442.check +++ b/test/files/run/t8442.check @@ -1 +1 @@ -pos: NoPosition Class A_1 not found - continuing with a stub. WARNING + diff --git a/test/files/run/t9268.check b/test/files/run/t9268.check index 90ef940eb3..60afcbb648 100644 --- a/test/files/run/t9268.check +++ b/test/files/run/t9268.check @@ -1,5 +1,4 @@ Compiling Client1 -pos: NoPosition Class Waiter not found - continuing with a stub. WARNING + Compiling Client2 -pos: NoPosition Class Waiter not found - continuing with a stub. WARNING pos: NoPosition Unable to locate class corresponding to inner class entry for Predicate in owner Waiter ERROR |