From 767d730c50fd21915fed0dd64ad9f40500be0a6b Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 14 Jan 2005 10:45:36 +0000 Subject: [PATCH] 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). --- weaver/src/org/aspectj/weaver/ResolvedTypeX.java | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- 2.39.5