From: aclement Date: Tue, 26 Aug 2008 16:40:01 +0000 (+0000) Subject: change method to something sensible X-Git-Tag: V162DEV_M1~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9795eeef6a860e29a03bdcd7f72eed82d83b4641;p=aspectj.git change method to something sensible --- 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 M. Dahm */ /** @@ -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;