]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bug 80916: In some cases the structure model doesn't contain the "matches...
authoraclement <aclement>
Mon, 20 Dec 2004 14:44:07 +0000 (14:44 +0000)
committeraclement <aclement>
Mon, 20 Dec 2004 14:44:07 +0000 (14:44 +0000)
weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java

index efa3482f99008ac666907df87f3135687736e3c3..3c0824fa95256dca821cbcf2cbff7894a8182dca 100644 (file)
@@ -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(),