aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr79523.aj
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-19 19:51:32 +0000
committeracolyer <acolyer>2005-08-19 19:51:32 +0000
commit93fdce17441da20b66f6db665db9d9272adda09c (patch)
treefcf5af19f7ecc443651b8aa90b1c466d6ea46402 /tests/bugs150/pr79523.aj
parent7b325703558284f5dbf21c5e94b1ffc76e4e382c (diff)
downloadaspectj-93fdce17441da20b66f6db665db9d9272adda09c.tar.gz
aspectj-93fdce17441da20b66f6db665db9d9272adda09c.zip
fix and test case for pr79523: BCException: illegal change to pointcut declaration: calls(<nothing>)
Diffstat (limited to 'tests/bugs150/pr79523.aj')
-rw-r--r--tests/bugs150/pr79523.aj6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bugs150/pr79523.aj b/tests/bugs150/pr79523.aj
new file mode 100644
index 000000000..6456b002c
--- /dev/null
+++ b/tests/bugs150/pr79523.aj
@@ -0,0 +1,6 @@
+public aspect pr79523 {
+
+ pointcut someCalls(String str) : call(*.new(String)) && args(str);
+ declare warning : someCalls(str) : "not allowed"; // CE L 4
+
+} \ No newline at end of file