Generate additional NOP in inline call to keep linenumbers

This commit is contained in:
Michael Bogdanov
2015-02-11 14:23:57 +03:00
parent b58cdae0c5
commit 50c9c93f37
@@ -260,6 +260,9 @@ public class InlineCodegen extends CallGenerator {
MethodNode adapter = InlineCodegenUtil.createEmptyMethodNode();
//hack to keep linenumber info, otherwise jdi will skip begin of linenumber chain
adapter.visitInsn(Opcodes.NOP);
InlineResult result = inliner.doInline(adapter, remapper, true, LabelOwner.SKIP_ALL);
result.getReifiedTypeParametersUsages().mergeAll(reificationResult);