From aafe4244db32cb6b75c80bd712ef6188bb2a1d4e Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 5 Aug 2004 09:23:47 +0000 Subject: [PATCH] Fix for Bugzilla Bug 71273 RuntimeException thrown: Could not find instruction: org.apache.bcel.generic.B2I --- weaver/src/org/aspectj/weaver/bcel/Utility.java | 7 +++++++ 1 file changed, 7 insertions(+) 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)) { -- 2.39.5