Browse Source

moved to 162

tags/V162DEV_M1
aclement 15 years ago
parent
commit
931f402393
2 changed files with 0 additions and 31 deletions
  1. 0
    21
      tests/bugs154/pr209051/Bug.java
  2. 0
    10
      tests/bugs154/pr209051/Bug2.java

+ 0
- 21
tests/bugs154/pr209051/Bug.java View File

@@ -1,21 +0,0 @@
import org.aspectj.lang.annotation.*;

public @Aspect class Bug {
@Pointcut("args(i) && if() && within(Foo)")
public static boolean pc(int i) {
return i < 0;
}
@Before("pc(*)")
public void advice() { System.out.println("advice running");}

public static void main(String []argv) {
new Foo().trigger(-1);
new Foo().trigger(+1);
}
}

class Foo {
public void trigger(int i) {}
}


+ 0
- 10
tests/bugs154/pr209051/Bug2.java View File

@@ -1,10 +0,0 @@
import org.aspectj.lang.annotation.*;

public aspect Bug2 {
pointcut pc(int i): args(i) && if(i<0);

before(): pc(*) {
}

public void trigger(int i) {}
}

Loading…
Cancel
Save