diff options
author | aclement <aclement> | 2008-08-22 19:53:05 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-22 19:53:05 +0000 |
commit | d69f1374650e84780358da089e4b220782475107 (patch) | |
tree | fbf446b6593b33dd12c1729dcad46733da30b8a0 /tests/bugs162 | |
parent | b9ba4893500c2de097adab6ed9c1e407515004b8 (diff) | |
download | aspectj-d69f1374650e84780358da089e4b220782475107.tar.gz aspectj-d69f1374650e84780358da089e4b220782475107.zip |
209051: promoted test 154>162
Diffstat (limited to 'tests/bugs162')
-rw-r--r-- | tests/bugs162/pr209051/Bug.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs162/pr209051/Bug.java b/tests/bugs162/pr209051/Bug.java new file mode 100644 index 000000000..ac1bf7b8e --- /dev/null +++ b/tests/bugs162/pr209051/Bug.java @@ -0,0 +1,21 @@ +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) {} +} + |