aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/CodeIterator.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-02-09 18:05:21 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-02-09 18:05:21 +0000
commitfa1ebd7549d3f17ce49e7942703bc598f9142081 (patch)
tree442d970dbe49c0e02f8bf5b7a04549ce65f6d66b /src/main/javassist/bytecode/CodeIterator.java
parent0940370343d08e42be624650d0a9077dc838b4f9 (diff)
downloadjavassist-fa1ebd7549d3f17ce49e7942703bc598f9142081.tar.gz
javassist-fa1ebd7549d3f17ce49e7942703bc598f9142081.zip
modified javassist.convert.* to support the stack map table of Java 6.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@351 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/bytecode/CodeIterator.java')
-rw-r--r--src/main/javassist/bytecode/CodeIterator.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/CodeIterator.java b/src/main/javassist/bytecode/CodeIterator.java
index 13948c91..fbad5ee5 100644
--- a/src/main/javassist/bytecode/CodeIterator.java
+++ b/src/main/javassist/bytecode/CodeIterator.java
@@ -671,6 +671,10 @@ public class CodeIterator implements Opcode {
if (vta != null)
vta.shiftPc(where, gapLength, exclusive);
+ StackMapTable smt = (StackMapTable)ca.getAttribute(StackMapTable.tag);
+ if (smt != null)
+ smt.shiftPc(where, gapLength, exclusive);
+
return newcode;
}