Groovy ControlFlowBuilder: additional logging

This commit is contained in:
Max Medvedev
2014-02-10 09:07:49 +04:00
parent d9c547ac63
commit c2e137a60c
@@ -1120,7 +1120,9 @@ public class ControlFlowBuilder extends GroovyRecursiveElementVisitor {
private void finishNode(InstructionImpl instruction) {
final InstructionImpl popped = myProcessingStack.pop();
if (!instruction.equals(popped)) {
String description = "popped: " + popped.toString() + " : " + popped.hashCode() + " , expected: " + instruction.toString() + " : " + instruction.hashCode();
String description = "popped: " + popped.toString() + " : " + popped.hashCode() +
" , expected: " + instruction.toString() + " : " + instruction.hashCode() +
"same objects:" + (popped == instruction);
error(description);
}
}