From 4b025ddd88927b6889067ced6a663cba8bc25e8e Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 23 Apr 2004 13:17:16 +0000 Subject: [PATCH] Fix for Bugzilla Bug 59440 NPE when binary weaving a ctor ITD. --- .../compiler/ast/InterTypeConstructorDeclaration.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); -- 2.39.5