aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-11 07:28:16 +0000
committeraclement <aclement>2006-05-11 07:28:16 +0000
commit385d2dfb5fbb9b0da00ca3fe7c00bbea3b772c8e (patch)
tree96885731d2aaf5fb41d662035229a51ace8dd19d /weaver
parent923c2265e677b997c3ad80d48dc78004a1313ff9 (diff)
downloadaspectj-385d2dfb5fbb9b0da00ca3fe7c00bbea3b772c8e.tar.gz
aspectj-385d2dfb5fbb9b0da00ca3fe7c00bbea3b772c8e.zip
134471 - incremental structure model repair code overhaul - compare source locations (for now) until handles are location independent.
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/Advice.java4
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/Advice.java b/weaver/src/org/aspectj/weaver/Advice.java
index 38e0d9c88..760856efa 100644
--- a/weaver/src/org/aspectj/weaver/Advice.java
+++ b/weaver/src/org/aspectj/weaver/Advice.java
@@ -375,7 +375,9 @@ public abstract class Advice extends ShadowMunger {
Advice o = (Advice) other;
return o.kind.equals(kind)
&& ((o.pointcut == null) ? (pointcut == null) : o.pointcut.equals(pointcut))
- && ((o.signature == null) ? (signature == null) : o.signature.equals(signature));
+ && ((o.signature == null) ? (signature == null) : o.signature.equals(signature))
+ && (World.compareLocations?((o.getSourceLocation()==null) ? (getSourceLocation()==null): o.getSourceLocation().equals(getSourceLocation())):true) // pr134471 - remove when handles are improved to be independent of location
+ ;
}
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
index 3a8b01c4b..364069830 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
@@ -1672,7 +1672,9 @@ public class BcelTypeMunger extends ConcreteTypeMunger {
if (! (other instanceof BcelTypeMunger)) return false;
BcelTypeMunger o = (BcelTypeMunger) other;
return ((o.getMunger() == null) ? (getMunger() == null) : o.getMunger().equals(getMunger()))
- && ((o.getAspectType() == null) ? (getAspectType() == null) : o.getAspectType().equals(getAspectType()));
+ && ((o.getAspectType() == null) ? (getAspectType() == null) : o.getAspectType().equals(getAspectType()))
+ && (World.compareLocations?((o.getSourceLocation()==null)? (getSourceLocation()==null): o.getSourceLocation().equals(getSourceLocation())):true); // pr134471 - remove when handles are improved to be independent of location
+
}
private volatile int hashCode = 0;