aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-05 09:23:47 +0000
committeraclement <aclement>2004-08-05 09:23:47 +0000
commitaafe4244db32cb6b75c80bd712ef6188bb2a1d4e (patch)
tree846829797141a5b305d4d38ebd9c7c426cd18474
parent1ad92493aaa3c65fad150c567dc3da7f64816073 (diff)
downloadaspectj-aafe4244db32cb6b75c80bd712ef6188bb2a1d4e.tar.gz
aspectj-aafe4244db32cb6b75c80bd712ef6188bb2a1d4e.zip
Fix for Bugzilla Bug 71273
RuntimeException thrown: Could not find instruction: org.apache.bcel.generic.B2I
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/Utility.java7
1 files changed, 7 insertions, 0 deletions
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)) {