diff options
author | aclement <aclement> | 2005-12-13 09:25:38 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-12-13 09:25:38 +0000 |
commit | ae500c6ac89fef8b7bb6cf4bd2a9cf1ec16cdd6a (patch) | |
tree | dcb827bfd0bf4afa8e33544a020df0b08f6985c3 /tests/bugs150 | |
parent | 3eb0e5addb26cf4f8a9a66795581c01a60adce63 (diff) | |
download | aspectj-ae500c6ac89fef8b7bb6cf4bd2a9cf1ec16cdd6a.tar.gz aspectj-ae500c6ac89fef8b7bb6cf4bd2a9cf1ec16cdd6a.zip |
test for 120521
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr120521/PerTargetSubaspectError.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs150/pr120521/PerTargetSubaspectError.java b/tests/bugs150/pr120521/PerTargetSubaspectError.java new file mode 100644 index 000000000..0f2443dad --- /dev/null +++ b/tests/bugs150/pr120521/PerTargetSubaspectError.java @@ -0,0 +1,18 @@ +package bugs; + +public class PerTargetSubaspectError { + public static void main(String[] args) { + C.run(); + } + static class C { + static void run() {} + } + pointcut doit() : execution(void C.run()); + + // no error if not pertarget + static aspect CPT pertarget(pc()){ + // no error if doit() defined in CPT + protected pointcut pc() : doit(); // unexpected CE + before() : doit() {} // no CE + } +} |