Output LVT discrepancies on separate lines to make them easier to read

This commit is contained in:
Mumfrey committed 2015-08-14 14:58:04 +01:00
1 parent d69c9d7aa9
commit a1d2ef62bb
1 file changed
+2 -2
@@ -423,8 +423,8 @@ public class CallbackInjector extends Injector {
int position = callback.target.method.instructions.indexOf(callback.node);
List<String> expected = CallbackInjector.summariseLocals(this.methodNode.desc, callback.target.arguments.length + 1);
List<String> found = CallbackInjector.summariseLocals(callback.localTypes, callback.frameSize);
String message = String.format("LVT in %s::%s has incompatible changes at opcode %d. Expected %s but found %s. Callback %s%s",
this.classNode.name, callback.target.method.name, position, expected, found, this.methodNode.name, this.methodNode.desc);
String message = String.format("LVT in %s::%s has incompatible changes at opcode %d in callback %s%s.\nExpected: %s\n Found:%s",
this.classNode.name, callback.target.method.name, position, this.methodNode.name, this.methodNode.desc, expected, found);
return message;
}