aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/DeclareErrorNamedPointcutCE.java18
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