From: aclement Date: Thu, 5 Aug 2004 09:23:47 +0000 (+0000) Subject: Fix for Bugzilla Bug 71273 X-Git-Tag: for_ajdt1_1_12~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aafe4244db32cb6b75c80bd712ef6188bb2a1d4e;p=aspectj.git Fix for Bugzilla Bug 71273 RuntimeException thrown: Could not find instruction: org.apache.bcel.generic.B2I --- diff --git a/weaver/src/org/aspectj/weaver/bcel/Utility.java b/weaver/src/org/aspectj/weaver/bcel/Utility.java index 2ddfe8506..cd98c4e98 100644 --- a/weaver/src/org/aspectj/weaver/bcel/Utility.java +++ b/weaver/src/org/aspectj/weaver/bcel/Utility.java @@ -274,6 +274,13 @@ public class Utility { //System.out.println("cast to: " + toType); InstructionList il = new InstructionList(); + + //PR71273 + if ((fromType.equals(Type.BYTE) || fromType.equals(Type.CHAR) || fromType.equals(Type.SHORT)) && + (toType.equals(Type.INT))) { + return il; + } + if (fromType.equals(toType)) return il; if (toType.equals(Type.VOID)) {