aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs193/333274/ma2/Aspect1.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs193/333274/ma2/Aspect1.java')
-rw-r--r--tests/bugs193/333274/ma2/Aspect1.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs193/333274/ma2/Aspect1.java b/tests/bugs193/333274/ma2/Aspect1.java
new file mode 100644
index 000000000..b04104dea
--- /dev/null
+++ b/tests/bugs193/333274/ma2/Aspect1.java
@@ -0,0 +1,34 @@
+package ma2;
+
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+
+
+public aspect Aspect1 {
+
+ Object around(): (execution(@Annotation1 * *(..)) || execution(@Annotation1 *.new(..))) {
+
+ InternalClass ic = new InternalClass();
+
+ System.out.println(">In Aspect1");
+
+ try {
+ proceed();
+ } catch (Exception ignored) {
+
+ }
+
+ System.out.println("=In Aspect1");
+ try {
+ return proceed();
+ } finally {
+ System.out.println("<In Aspect1");
+ }
+
+ }
+
+ private static class InternalClass {
+ }
+
+}