diff options
author | aclement <aclement> | 2008-08-26 16:40:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-26 16:40:01 +0000 |
commit | 9795eeef6a860e29a03bdcd7f72eed82d83b4641 (patch) | |
tree | e7f3b3e9d207642f04709e9ccc732dca4531a676 /bcel-builder | |
parent | fbaf927aa84d45475d1b134bfd1fa44997a744a0 (diff) | |
download | aspectj-9795eeef6a860e29a03bdcd7f72eed82d83b4641.tar.gz aspectj-9795eeef6a860e29a03bdcd7f72eed82d83b4641.zip |
change method to something sensible
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionBranch.java | 7 |
1 files changed, 4 insertions, 3 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 3fd9b4c75..66388f5e5 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.2 2008/05/28 23:53:00 aclement Exp $ + * @version $Id: InstructionBranch.java,v 1.3 2008/08/26 16:40:01 aclement Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ /** @@ -79,6 +79,7 @@ public class InstructionBranch extends Instruction implements InstructionTargete protected InstructionHandle targetInstruction; // Target object in instruction list protected int positionOfThisInstruction; // for calculating relative branch destinations! + /** * Constructor if building an instruction branch that targets a handle (ie. we don't need to actual targetIndex in the bytecode yet) */ @@ -174,8 +175,8 @@ public class InstructionBranch extends Instruction implements InstructionTargete positionOfThisInstruction += offset; - if (Math.abs(i)>=(32767-max_offset)) { // too larget for short (we think) - throw new IllegalStateException("Argh!"); + 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)); } return 0; |