summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bcel-builder/src/org/aspectj/apache/bcel/generic/LocalVariableGen.java10
-rw-r--r--lib/bcel/bcel-src.zipbin871248 -> 871089 bytes
-rw-r--r--lib/bcel/bcel.jarbin594017 -> 594006 bytes
3 files changed, 2 insertions, 8 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/LocalVariableGen.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/LocalVariableGen.java
index f181e8c9d..49f50591b 100644
--- a/bcel-builder/src/org/aspectj/apache/bcel/generic/LocalVariableGen.java
+++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/LocalVariableGen.java
@@ -63,7 +63,7 @@ import org.aspectj.apache.bcel.classfile.LocalVariable;
* with getLocalVariable which needs the instruction list and the constant
* pool as parameters.
*
- * @version $Id: LocalVariableGen.java,v 1.4 2005/09/27 21:08:24 acolyer Exp $
+ * @version $Id: LocalVariableGen.java,v 1.5 2005/09/28 06:07:20 acolyer Exp $
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
* @see LocalVariable
* @see MethodGen
@@ -120,13 +120,7 @@ public class LocalVariableGen
if(length > 0) {
length += end.getInstruction().getLength();
- // AMC - the above calculation is off by one. The spec says that the variable
- // must have a range from start pos to start pos + length INCLUSIVE.
- // but the calculation above puts start pos + length as the address of
- // the first instruction outside of the range.
- // So we need to subtract 1... which gives the very end of the last inst in the range
- length = length - 1;
- }
+ }
int name_index = cp.addUtf8(name);
int signature_index = cp.addUtf8(type.getSignature());
diff --git a/lib/bcel/bcel-src.zip b/lib/bcel/bcel-src.zip
index 3e83e735a..62037efc8 100644
--- a/lib/bcel/bcel-src.zip
+++ b/lib/bcel/bcel-src.zip
Binary files differ
diff --git a/lib/bcel/bcel.jar b/lib/bcel/bcel.jar
index 6d3a5ac7f..611ca14e3 100644
--- a/lib/bcel/bcel.jar
+++ b/lib/bcel/bcel.jar
Binary files differ