From e72228e3682ad8cb6503d2c0b1c06ac059ae7e1a Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 14 Sep 2011 00:04:38 +0000 Subject: [PATCH] 354470 --- tests/bugs1612/pr354470/Code.java | 48 +++++++++++++++++++ tests/bugs1612/pr354470/Code2.java | 39 +++++++++++++++ tests/bugs1612/pr354470/Code3.java | 41 ++++++++++++++++ .../systemtest/ajc1612/Ajc1612Tests.java | 12 +++++ .../aspectj/systemtest/ajc1612/ajc1612.xml | 28 +++++++++++ 5 files changed, 168 insertions(+) create mode 100644 tests/bugs1612/pr354470/Code.java create mode 100644 tests/bugs1612/pr354470/Code2.java create mode 100644 tests/bugs1612/pr354470/Code3.java diff --git a/tests/bugs1612/pr354470/Code.java b/tests/bugs1612/pr354470/Code.java new file mode 100644 index 000000000..044966200 --- /dev/null +++ b/tests/bugs1612/pr354470/Code.java @@ -0,0 +1,48 @@ +import org.aspectj.lang.annotation.*; +import java.lang.annotation.*; +import java.lang.reflect.*; + +@Aspect("perthis(transactional())") +public class Code { + @Pointcut("execution(@Transactional * * (..))") + public void transactional() { } + + public static void main(String[] args) { + print(AAA.class); + print(BBB.class); + print(CCC.class); + } + + public static void print(Class clazz) { + System.out.println(clazz.getName()); + Class[] ifs = clazz.getInterfaces(); + if (ifs!=null) { + for (int i=0;i + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.5