diff options
author | acolyer <acolyer> | 2004-01-07 16:41:12 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-01-07 16:41:12 +0000 |
commit | ed48480aba7384dbf996b09e67010cdb86fa08c4 (patch) | |
tree | e234446b30425799dce34a8969593789e9514ff8 /tests/bugs | |
parent | 7322131ad6d3c5c14114a6b7945757f45d438112 (diff) | |
download | aspectj-ed48480aba7384dbf996b09e67010cdb86fa08c4.tar.gz aspectj-ed48480aba7384dbf996b09e67010cdb86fa08c4.zip |
pr 45184: External pointcut refs not resolved if named pointcut used by declare
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 |