diff options
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/SuperPointcutCE.java | 27 |
1 files changed, 27 insertions, 0 deletions
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 +} |