aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr354470/Code2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1612/pr354470/Code2.java')
-rw-r--r--tests/bugs1612/pr354470/Code2.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs1612/pr354470/Code2.java b/tests/bugs1612/pr354470/Code2.java
new file mode 100644
index 000000000..1cc1ea49b
--- /dev/null
+++ b/tests/bugs1612/pr354470/Code2.java
@@ -0,0 +1,39 @@
+import org.aspectj.lang.annotation.*;
+import java.lang.annotation.*;
+import java.lang.reflect.*;
+import org.aspectj.lang.*;
+
+@Aspect("perthis(transactional())")
+public class Code2 {
+ @Pointcut("execution(@Transactional * * (..))")
+ public void transactional() { }
+
+ @Before("execution(* *(..))")
+ public void m(JoinPoint.StaticPart thisJoinPointStaticPart) {
+ System.out.println(thisJoinPointStaticPart);
+ }
+
+ public static void main(String[] args) {
+ new AAA().m();
+ new BBB().m();
+ new CCC().m();
+ }
+
+}
+
+class AAA {
+ public void m() { }
+}
+
+class BBB {
+ public void m() { }
+}
+
+class CCC {
+ @Transactional
+ public void m() { }
+}
+
+
+@Retention(RetentionPolicy.RUNTIME) @interface Transactional {}
+