From 427c0d3dfdcc6a74c7e0bc6fcf1f55206ee04a8e Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 20 Dec 2004 14:44:07 +0000 Subject: [PATCH] Fix for Bug 80916: In some cases the structure model doesn't contain the "matches declare" relationship --- weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java | 3 +++ 1 file changed, 3 insertions(+) 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(), -- 2.39.5