aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-14 10:45:36 +0000
committeraclement <aclement>2005-01-14 10:45:36 +0000
commit767d730c50fd21915fed0dd64ad9f40500be0a6b (patch)
treef13b219a10a580ae1923f3ec0e6e5b887dff83f1 /weaver
parentb3a30ac11b75cbdd7e9fbb6f7616cce3d2528bba (diff)
downloadaspectj-767d730c50fd21915fed0dd64ad9f40500be0a6b.tar.gz
aspectj-767d730c50fd21915fed0dd64ad9f40500be0a6b.zip
Fix for AjcPre10xTests.test016 if run standalone. (if run standalone no-one was setting the world correctly for certain types and you'd get an NPE).
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/ResolvedTypeX.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/ResolvedTypeX.java b/weaver/src/org/aspectj/weaver/ResolvedTypeX.java
index 80ee36f92..1214df7d0 100644
--- a/weaver/src/org/aspectj/weaver/ResolvedTypeX.java
+++ b/weaver/src/org/aspectj/weaver/ResolvedTypeX.java
@@ -954,6 +954,10 @@ public abstract class ResolvedTypeX extends TypeX implements AnnotatedElement {
if (index > 6 || ((Primitive)other).index > 6) return false;
return true;
}
+ public ResolvedTypeX resolve(World world) {
+ this.world = world;
+ return super.resolve(world);
+ }
public final boolean needsNoConversionFrom(TypeX other) {
if (! other.isPrimitive()) return false;
return noConvertTable[((Primitive)other).index][index];