diff options
author | aclement <aclement> | 2009-01-21 01:19:36 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-01-21 01:19:36 +0000 |
commit | 284586a44e50405944ad35cd9846e9215528fb89 (patch) | |
tree | 779466b57c7ef7a6a9ef35c1ca552323eb5dce1f /tests/bugs164 | |
parent | fee0a3644bfcf03362953fd098962ce88f494d86 (diff) | |
download | aspectj-284586a44e50405944ad35cd9846e9215528fb89.tar.gz aspectj-284586a44e50405944ad35cd9846e9215528fb89.zip |
209051: moved test to 164
Diffstat (limited to 'tests/bugs164')
-rw-r--r-- | tests/bugs164/pr209051/Bug.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs164/pr209051/Bug.java b/tests/bugs164/pr209051/Bug.java new file mode 100644 index 000000000..ac1bf7b8e --- /dev/null +++ b/tests/bugs164/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) {} +} + |