From 10fb3c602d53d02377e80b45687cbbf0096d71dc Mon Sep 17 00:00:00 2001 From: wisberg Date: Mon, 28 Jul 2003 21:50:11 +0000 Subject: [PATCH] @testcase PR#40858 weaver trace on mis-qualified pointcut reference --- tests/ajcTestsFailing.xml | 9 +++++++++ tests/bugs/SuperPointcutCE.java | 27 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 tests/bugs/SuperPointcutCE.java diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index 455eff989..2fb358054 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -4,6 +4,15 @@ + + + + + + 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 +} -- 2.39.5