Browse Source

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).

tags/Root_AspectJ5_Development
aclement 19 years ago
parent
commit
767d730c50
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      weaver/src/org/aspectj/weaver/ResolvedTypeX.java

+ 4
- 0
weaver/src/org/aspectj/weaver/ResolvedTypeX.java View File

@@ -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];

Loading…
Cancel
Save