]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bugzilla Bug 71273
authoraclement <aclement>
Thu, 5 Aug 2004 09:23:47 +0000 (09:23 +0000)
committeraclement <aclement>
Thu, 5 Aug 2004 09:23:47 +0000 (09:23 +0000)
   RuntimeException thrown: Could not find instruction: org.apache.bcel.generic.B2I

weaver/src/org/aspectj/weaver/bcel/Utility.java

index 2ddfe8506e04a29ea74adfb35ac83008e91dbfde..cd98c4e98b472f0bde6a9fe020791098c65d4d10 100644 (file)
@@ -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)) {