aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2011-06-17 22:39:42 +0000
committeraclement <aclement>2011-06-17 22:39:42 +0000
commitf7b11932d5e3bdbb2de85fe21af8443ad9351530 (patch)
tree14c6579fb742822d23f269b86fa84dcbc45ef7b7 /weaver
parentcbc4553d7af7b36d2acc97c7c78e631d3fd4e42f (diff)
downloadaspectj-f7b11932d5e3bdbb2de85fe21af8443ad9351530.tar.gz
aspectj-f7b11932d5e3bdbb2de85fe21af8443ad9351530.zip
349636: debug
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/Utility.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/Utility.java b/weaver/src/org/aspectj/weaver/bcel/Utility.java
index 96efd8d33..19bad05b2 100644
--- a/weaver/src/org/aspectj/weaver/bcel/Utility.java
+++ b/weaver/src/org/aspectj/weaver/bcel/Utility.java
@@ -144,7 +144,6 @@ public class Utility {
BcelWorld.makeBcelType(signature.getReturnType()), BcelWorld.makeBcelTypes(signature.getParameterTypes()), kind);
}
- // XXX don't need the world now
public static Instruction createInvoke(InstructionFactory fact, BcelWorld world, Member signature) {
short kind;
int signatureModifiers = signature.getModifiers();
@@ -267,9 +266,13 @@ public class Utility {
if (!toType.isConvertableFrom(fromType) && !fromType.isConvertableFrom(toType)) {
throw new BCException("can't convert from " + fromType + " to " + toType);
}
- // XXX I'm sure this test can be simpler but my brain hurts and this
- // works
- if (!toType.getWorld().isInJava5Mode()) {
+ // XXX I'm sure this test can be simpler but my brain hurts and this works
+ World w = toType.getWorld();
+ if (w == null) { // dbg349636
+ throw new IllegalStateException("Debug349636: Unexpectedly found world null for type " + toType.getName());
+ }
+
+ if (!w.isInJava5Mode()) {
if (toType.needsNoConversionFrom(fromType)) {
return;
}