Sfoglia il codice sorgente

can't use wildcards in target in 1.1

tags/V_1_1_b2
jhugunin 21 anni fa
parent
commit
7b7572bc37
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      tests/new/CallNotTarget.java

+ 3
- 3
tests/new/CallNotTarget.java Vedi File

@@ -14,7 +14,7 @@ public class CallNotTarget {
static {
Tester.expectEvent("A.before");
Tester.expectEvent("A.before-not");
Tester.expectEvent("A*.before-not");
Tester.expectEvent("Aspect.before-not");
Tester.expectEvent("go");
}

@@ -43,8 +43,8 @@ aspect Aspect {
before () : pc() && !target (A) { // change to !target(String) to avoid bug
Tester.event("A.before-not");
}
before () : pc() && !target (A*) { // change to !target(String) to avoid bug
Tester.event("A*.before-not");
before () : pc() && !target (Aspect) { // change to !target(String) to avoid bug
Tester.event("Aspect.before-not");
}

// before(): call(void doit(I)) && !args(A) {

Loading…
Annulla
Salva