aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/DisjunctVarBinding_3.java
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-12-15 20:51:01 +0000
committeracolyer <acolyer>2004-12-15 20:51:01 +0000
commit1b6e9edfacf5f3d2732d164b15bc26022835c6ac (patch)
tree120b839c6f1760e266f56acf6aea89723d7b1f07 /tests/bugs/DisjunctVarBinding_3.java
parent1575a175b511eadbae03fc760b0cd20edde6ae4e (diff)
downloadaspectj-1b6e9edfacf5f3d2732d164b15bc26022835c6ac.tar.gz
aspectj-1b6e9edfacf5f3d2732d164b15bc26022835c6ac.zip
partial fix for bug 61568.
These changes are both (a) a performance optimization, and (b) an improvement on the binding across || rules that we implemented in 1.2.1. Instead of saying the the first binding in a left-to-right traversal of the pointcuts DNF is the one that you get (too much to ask users to do DNF rewriting in their heads), this version implements the rule that every || branch in the DNF must bind all formals, and if two || branches can have any join points in common (can match join points of the same kind), then both must bind all formals identically. So it allows things like execution(* *(..)) && args(x) || call(* *(..)) && this(x) which previously we used to forbid. But primarily it turned out to be a performance optimization.
Diffstat (limited to 'tests/bugs/DisjunctVarBinding_3.java')
-rw-r--r--tests/bugs/DisjunctVarBinding_3.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/DisjunctVarBinding_3.java b/tests/bugs/DisjunctVarBinding_3.java
index 3876b3521..95713d361 100644
--- a/tests/bugs/DisjunctVarBinding_3.java
+++ b/tests/bugs/DisjunctVarBinding_3.java
@@ -1,7 +1,7 @@
aspect IfPointcut {
after(A a, B b) returning:
- call(* foo(*,*)) &&
+ execution(* foo(*,*)) &&
(args(b,a) || args(a,b)) {
System.out.println("Woven");
}