diff options
Diffstat (limited to 'tests/bugs150/Pr114495.aj')
-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 |