]> source.dussan.org Git - javassist.git/commitdiff
for JIRA JASSIST-98
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 12 Nov 2009 15:43:30 +0000 (15:43 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 12 Nov 2009 15:43:30 +0000 (15:43 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@504 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/LocalVariableAttribute.java

index d01aa4085c1b152668935bbbdc32f8faffcbc739..3d44a295e5cc8501efabb4eb5939b205348d475a 100644 (file)
@@ -188,7 +188,7 @@ public class LocalVariableAttribute extends AttributeInfo {
              */
             if (pc > where || (exclusive && pc == where && pc != 0))
                 ByteArray.write16bit(pc + gapLength, info, pos);
-            else if (pc + len > where)
+            else if (pc + len > where || (exclusive && pc + len == where))
                 ByteArray.write16bit(len + gapLength, info, pos + 2);
         }
     }