aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2006-06-20 10:25:03 +0000
committeraclement <aclement>2006-06-20 10:25:03 +0000
commitc2ae48e581cd204a64f95f4dd3891d118a71eaf6 (patch)
treef21fe5ea37f15fd6af4668cc409c6222548f3208 /weaver
parent1468daa88534262ebdd209574d3be360a0c78143 (diff)
downloadaspectj-c2ae48e581cd204a64f95f4dd3891d118a71eaf6.tar.gz
aspectj-c2ae48e581cd204a64f95f4dd3891d118a71eaf6.zip
145963: patches from comment #3
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java
index e68696a77..04725f894 100644
--- a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java
+++ b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java
@@ -52,6 +52,10 @@ public class AsmRelationshipProvider {
public void checkerMunger(IHierarchy model, Shadow shadow, Checker checker) {
if (!AsmManager.isCreatingModel()) return;
if (shadow.getSourceLocation() == null || checker.getSourceLocation() == null) return;
+
+ if (World.createInjarHierarchy) {
+ checker.createHierarchy();
+ }
// Ensure a node for the target exists
IProgramElement targetNode = getNode(AsmManager.getDefault().getHierarchy(),shadow);
@@ -59,17 +63,13 @@ public class AsmRelationshipProvider {
String targetHandle = AsmManager.getDefault().getHandleProvider()
.createHandleIdentifier(targetNode);
if (targetHandle == null) return;
-
+
IProgramElement sourceNode = AsmManager.getDefault().getHierarchy()
.findElementForSourceLine(checker.getSourceLocation());
String sourceHandle = AsmManager.getDefault().getHandleProvider()
.createHandleIdentifier(sourceNode);
if (sourceHandle == null) return;
- if (World.createInjarHierarchy) {
- checker.createHierarchy();
- }
-
IRelationshipMap mapper = AsmManager.getDefault().getRelationshipMap();
IRelationship foreward = mapper.get(sourceHandle, IRelationship.Kind.DECLARE, MATCHED_BY,false,true);
foreward.addTarget(targetHandle);