From fb929568dfe3c21600d87a8b578de9b62d6e981f Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 24 Feb 2015 19:31:49 +1100 Subject: [PATCH] Fix kill LVT for remap only maps. --- .../net/md_5/specialsource/RemappingClassAdapter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/md_5/specialsource/RemappingClassAdapter.java b/src/main/java/net/md_5/specialsource/RemappingClassAdapter.java index d87afd4..c77f3fa 100644 --- a/src/main/java/net/md_5/specialsource/RemappingClassAdapter.java +++ b/src/main/java/net/md_5/specialsource/RemappingClassAdapter.java @@ -68,6 +68,7 @@ import org.objectweb.asm.FieldVisitor; import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; import net.md_5.specialsource.CustomRemapper; +import org.objectweb.asm.Label; import org.objectweb.asm.commons.RemappingAnnotationAdapter; /** @@ -176,6 +177,13 @@ public class RemappingClassAdapter extends ClassVisitor { mv.visitAttribute(attr); } } + + @Override + public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) { + if (!SpecialSource.kill_lvt) { + super.visitLocalVariable(name, desc, signature, start, end, index); + } + } }; } @@ -200,5 +208,4 @@ public class RemappingClassAdapter extends ClassVisitor { cv.visitAttribute(attr); } } - }