diff options
author | acolyer <acolyer> | 2005-11-23 19:21:03 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-11-23 19:21:03 +0000 |
commit | 86880f7281e04ed0c79781b5ddf2613821718b79 (patch) | |
tree | 8aabc90f68ce964a7bab72c0203d0a41000c3e81 /tests/bugs150 | |
parent | 5cba2054c0bbfb4bdf2f00f044e841741055282c (diff) | |
download | aspectj-86880f7281e04ed0c79781b5ddf2613821718b79.tar.gz aspectj-86880f7281e04ed0c79781b5ddf2613821718b79.zip |
tests and fix for pr114495
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/Pr114495.aj | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs150/Pr114495.aj b/tests/bugs150/Pr114495.aj new file mode 100644 index 000000000..ebb7afcc5 --- /dev/null +++ b/tests/bugs150/Pr114495.aj @@ -0,0 +1,22 @@ +public class Pr114495 { + public static void main(String[] args) { + C.go(); + } + static class C { + static void go() {} + } +} + +abstract aspect AA_ParameterizedTypeInPointcut<Target> { + pointcut going() :call(void Target.go()) ; + before() : going() { + System.out.println("AA.going()"); + } +} +aspect A_ParameterizedTypeInPointcut +extends AA_ParameterizedTypeInPointcut<Pr114495.C> { + declare warning : going() : "going()"; // works fine + before() : going() { // advice not applied + System.out.println("A.going()"); + } +}
\ No newline at end of file |