From 09df527b590f10c967751fb008e467205c3a9416 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 26 Apr 2005 16:16:03 +0000 Subject: Fix for structure model missing declare @constructor matches that hit the default ctor when it isn't defined in the source file. --- weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java index 8d3f38169..7e2a67cde 100644 --- a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java +++ b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java @@ -384,6 +384,7 @@ public class AsmRelationshipProvider { if (method.getName().startsWith("")) { // its a ctor methodElem = AsmManager.getDefault().getHierarchy().findElementForSignature(typeElem,IProgramElement.Kind.CONSTRUCTOR,type+parmString); + if (methodElem == null && args.length==0) methodElem = typeElem; // assume default ctor } else { // its a method methodElem = AsmManager.getDefault().getHierarchy().findElementForSignature(typeElem,IProgramElement.Kind.METHOD,method.getName()+parmString); -- cgit v1.2.3