From 893f78ee2d35b20649c098bfba81f93c2c93c5ca Mon Sep 17 00:00:00 2001 From: chiba Date: Thu, 12 Nov 2009 15:43:30 +0000 Subject: [PATCH] for JIRA JASSIST-98 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@504 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/bytecode/LocalVariableAttribute.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/javassist/bytecode/LocalVariableAttribute.java b/src/main/javassist/bytecode/LocalVariableAttribute.java index d01aa408..3d44a295 100644 --- a/src/main/javassist/bytecode/LocalVariableAttribute.java +++ b/src/main/javassist/bytecode/LocalVariableAttribute.java @@ -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); } } -- 2.39.5