diff options
author | wisberg <wisberg> | 2003-07-28 21:50:11 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-07-28 21:50:11 +0000 |
commit | 10fb3c602d53d02377e80b45687cbbf0096d71dc (patch) | |
tree | b40e4d350f2b01f19bef85061ff25a98ad5c9454 | |
parent | 3aecb2745ebaa24c3f463c473161f2c1eed83f03 (diff) | |
download | aspectj-10fb3c602d53d02377e80b45687cbbf0096d71dc.tar.gz aspectj-10fb3c602d53d02377e80b45687cbbf0096d71dc.zip |
@testcase PR#40858 weaver trace on mis-qualified pointcut reference
-rw-r--r-- | tests/ajcTestsFailing.xml | 9 | ||||
-rw-r--r-- | tests/bugs/SuperPointcutCE.java | 27 |
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index 455eff989..2fb358054 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -5,6 +5,15 @@ <suite> <ajc-test dir="bugs" + pr="40858" + comment="shouldn't super ref be permitted?" + title="weaver trace on mis-qualified pointcut reference"> + <compile files="SuperPointcutCE.java"> + <message kind="error" line="26"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs" pr="40814" title="compile error expected for interface pointcuts"> <compile files="InterfacePointcutCE.java"> diff --git a/tests/bugs/SuperPointcutCE.java b/tests/bugs/SuperPointcutCE.java new file mode 100644 index 000000000..7231fb00e --- /dev/null +++ b/tests/bugs/SuperPointcutCE.java @@ -0,0 +1,27 @@ + + +public class MissingTypeSigatureCE { + public static void main(String[] a) { + new C().run(); + } +} + +class C { + public void run(){ System.out.println("c");} +} + +abstract aspect AA { + pointcut pc() : call(public * *(..)) && !within(AA+); + before() : pc() { + System.out.println("here: " + thisJoinPointStaticPart); + } +} + +/** @testcase PR#40858 weaver trace on mis-qualified pointcut reference */ +aspect B extends AA { + + pointcut pc() : super.pc() + && !call(void println(..)); + + pointcut blah() : UnknownType.pc(); // CE +} |