diff options
author | Paul Phillips <paulp@improving.org> | 2011-06-28 05:19:14 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-06-28 05:19:14 +0000 |
commit | c23c21853a76adfc8694ce752853a5be5d5c8cf3 (patch) | |
tree | 057f6952d01f049ffbc533b814e3655b507c64a7 | |
parent | 77c01a9baca66c1a5a099318d403dbedbe4feeeb (diff) | |
download | scala-c23c21853a76adfc8694ce752853a5be5d5c8cf3.tar.gz scala-c23c21853a76adfc8694ce752853a5be5d5c8cf3.tar.bz2 scala-c23c21853a76adfc8694ce752853a5be5d5c8cf3.zip |
Suppressing a failing assert which isn't accomp...
Suppressing a failing assert which isn't accomplishing anything but
annoyance. Why is this suddenly tripping with frequency? I do not know.
No review.
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index a4753800a2..87a54c4fda 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -286,7 +286,17 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid with !(sym.name.toString contains '$') && sym.hasModuleFlag && !sym.isImplClass && !sym.isNestedClass } - val lmoc = c.symbol.companionModule + // At some point this started throwing lots of exceptions as a compile was finishing. + // error: java.lang.AssertionError: + // assertion failed: List(object package$CompositeThrowable, object package$CompositeThrowable) + // ...is the one I've seen repeatedly. Suppressing. + val lmoc = ( + try c.symbol.companionModule + catch { case x: AssertionError => + Console.println("Suppressing failed assert: " + x) + NoSymbol + } + ) // add static forwarders if there are no name conflicts; see bugs #363 and #1735 if (lmoc != NoSymbol && !c.symbol.isInterface) { if (isCandidateForForwarders(lmoc) && !settings.noForwarders.value) { |