diff options
author | acolyer <acolyer> | 2005-09-28 06:07:20 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-28 06:07:20 +0000 |
commit | 4b15f3893c96e56bae0634215dde92bdb8e6af2b (patch) | |
tree | 63ec92a83bbed196dc8fb9a027bcf2abe43ffc36 /bcel-builder | |
parent | 97520cf015afa87263c9497b4a60888ba2ada177 (diff) | |
download | aspectj-4b15f3893c96e56bae0634215dde92bdb8e6af2b.tar.gz aspectj-4b15f3893c96e56bae0634215dde92bdb8e6af2b.zip |
restoring original behaviour in LocalVariableGen - not happy with my change from last night....
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/generic/LocalVariableGen.java | 10 |
1 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()); |