From: aclement Date: Fri, 23 Apr 2004 13:17:16 +0000 (+0000) Subject: Fix for Bugzilla Bug 59440 X-Git-Tag: Root_ajdt_support~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b025ddd88927b6889067ced6a663cba8bc25e8e;p=aspectj.git Fix for Bugzilla Bug 59440 NPE when binary weaving a ctor ITD. --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java index 972d07c2a..717197dc2 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java @@ -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");