diff options
author | aclement <aclement> | 2005-04-26 16:16:03 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-04-26 16:16:03 +0000 |
commit | 09df527b590f10c967751fb008e467205c3a9416 (patch) | |
tree | 64e929735a2dee04d7792937f0a4e3287e23d429 /weaver | |
parent | 664be8d0314b540ae64682420330cef0be0c99d1 (diff) | |
download | aspectj-09df527b590f10c967751fb008e467205c3a9416.tar.gz aspectj-09df527b590f10c967751fb008e467205c3a9416.zip |
Fix for structure model missing declare @constructor matches that hit the default ctor when it isn't defined in the source file.
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java | 1 |
1 files changed, 1 insertions, 0 deletions
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("<init>")) { // 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); |