Skip to content

Commit

Permalink
Added some debugging info for our flaky test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos committed Oct 4, 2012
1 parent 0ab8510 commit 2af2456
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -146,9 +146,11 @@ class ScalaMethodVerifierProvider extends IMethodVerifierProvider with HasLogger
def isConcreteMethod(methodOwner: Symbol, abstractMethod: MethodBinding) = {
// Checks if `methodOwner`'s contain a non-deferred (i.e. concrete) member that matches `abstractMethod` definition
val methodSymbol = findMethodSymbol(methodOwner, abstractMethod)
val isConcreteMethod = methodSymbol.nonEmpty && {
val isDeferredMethod = methodSymbol.exists(_.isDeferred)
logger.debug("found %s method symbol: %s" format (abstractMethod.selector.mkString, methodSymbol))
val isConcreteMethod = methodSymbol exists { sym =>
val isDeferredMethod = sym.isDeferred
logger.debug("found %s method symbol: %s [deferred: %b]" format (abstractMethod.selector.mkString, sym, isDeferredMethod))
logger.debug("..but after sym.initialize: " + { sym.initialize; sym.isDeferred })

!isDeferredMethod
}
isConcreteMethod
Expand Down

0 comments on commit 2af2456

Please sign in to comment.