From: aclement Date: Mon, 20 Dec 2004 14:44:07 +0000 (+0000) Subject: Fix for Bug 80916: In some cases the structure model doesn't contain the "matches... X-Git-Tag: Root_AspectJ5_Development~130 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=427c0d3dfdcc6a74c7e0bc6fcf1f55206ee04a8e;p=aspectj.git Fix for Bug 80916: In some cases the structure model doesn't contain the "matches declare" relationship --- diff --git a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java index efa3482f9..3c0824fa9 100644 --- a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java +++ b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java @@ -43,6 +43,9 @@ public class AsmRelationshipProvider { public void checkerMunger(IHierarchy model, Shadow shadow, Checker checker) { if (shadow.getSourceLocation() == null || checker.getSourceLocation() == null) return; + // Ensure a node for the target exists + IProgramElement targetNode = getNode(AsmManager.getDefault().getHierarchy(), shadow); + String sourceHandle = ProgramElement.createHandleIdentifier( checker.getSourceLocation().getSourceFile(), checker.getSourceLocation().getLine(),