diff options
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/DeclareErrorNamedPointcutCE.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs/DeclareErrorNamedPointcutCE.java b/tests/bugs/DeclareErrorNamedPointcutCE.java new file mode 100644 index 000000000..94865e4d3 --- /dev/null +++ b/tests/bugs/DeclareErrorNamedPointcutCE.java @@ -0,0 +1,18 @@ +// pr 45184 + +public class DeclareErrorNamedPointcutCE { + public static void main(String[] args) { + new C().run(); + } +} + +class C { + void run() { } // CW expected here +} + +aspect A { pointcut pc(): execution(void run()); } + +aspect B { + pointcut ref() : A.pc(); // bug: A.pc() treated as B.pc() + declare error : ref() : "ref"; +}
\ No newline at end of file |