aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/CodeIterator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/CodeIterator.java')
-rw-r--r--src/main/javassist/bytecode/CodeIterator.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/CodeIterator.java b/src/main/javassist/bytecode/CodeIterator.java
index 90c2308b..03da568e 100644
--- a/src/main/javassist/bytecode/CodeIterator.java
+++ b/src/main/javassist/bytecode/CodeIterator.java
@@ -638,6 +638,12 @@ public class CodeIterator implements Opcode {
if (va != null)
va.shiftPc(where, gapLength, exclusive);
+ LocalVariableAttribute vta
+ = (LocalVariableAttribute)ca.getAttribute(
+ LocalVariableAttribute.typeTag);
+ if (vta != null)
+ vta.shiftPc(where, gapLength, exclusive);
+
return newcode;
}