Generate additional NOP in inline call to keep linenumbers
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user