]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bugzilla Bug 59440
authoraclement <aclement>
Fri, 23 Apr 2004 13:17:16 +0000 (13:17 +0000)
committeraclement <aclement>
Fri, 23 Apr 2004 13:17:16 +0000 (13:17 +0000)
   NPE when binary weaving a ctor ITD.

org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java

index 972d07c2a2429bc98c4924684ff04f46b63e0401..717197dc2a1004a3d6ada60b9e123119e24f01b2 100644 (file)
@@ -186,13 +186,12 @@ public class InterTypeConstructorDeclaration extends InterTypeDeclaration {
 
        public EclipseTypeMunger build(ClassScope classScope) {
                EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope);
-
-               binding = classScope.referenceContext.binding.resolveTypesFor(binding);
                
                resolveOnType(classScope);
                if (ignoreFurtherInvestigation) return null;
                
-               
+               binding = classScope.referenceContext.binding.resolveTypesFor(binding);
+                               
                if (onTypeBinding.isInterface()) {
                        classScope.problemReporter().signalError(sourceStart, sourceEnd,
                                                        "can't define constructors on interfaces");