diff options
author | aclement <aclement> | 2008-08-26 16:43:17 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-26 16:43:17 +0000 |
commit | f15adf56f32d3d293bdab55b6f45902c8ee7e7d5 (patch) | |
tree | 40a9f3071b38487b5d65b9a899d9f9ebf73fd97d /bcel-builder | |
parent | 9795eeef6a860e29a03bdcd7f72eed82d83b4641 (diff) | |
download | aspectj-f15adf56f32d3d293bdab55b6f45902c8ee7e7d5.tar.gz aspectj-f15adf56f32d3d293bdab55b6f45902c8ee7e7d5.zip |
includes the opcode to tell us if it can be widened
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionBranch.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionBranch.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionBranch.java index 66388f5e5..b63c2fe1d 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionBranch.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionBranch.java @@ -65,7 +65,7 @@ import org.aspectj.apache.bcel.classfile.ConstantPool; * LOOKUPSWITCH and TABLESWITCH. * * @see InstructionList - * @version $Id: InstructionBranch.java,v 1.3 2008/08/26 16:40:01 aclement Exp $ + * @version $Id: InstructionBranch.java,v 1.4 2008/08/26 16:43:17 aclement Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ /** @@ -176,7 +176,7 @@ public class InstructionBranch extends Instruction implements InstructionTargete positionOfThisInstruction += offset; if (Math.abs(i)>=(32767-max_offset)) { // too large for short (we think) - throw new IllegalStateException("Unable to pack method, jump is too far: "+Math.abs(i)); + throw new IllegalStateException("Unable to pack method, jump (with opcode="+opcode+") is too far: "+Math.abs(i)); } return 0; |