aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs195
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs195')
-rw-r--r--tests/bugs195/333274/Code.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs195/333274/Code.java b/tests/bugs195/333274/Code.java
new file mode 100644
index 000000000..d456c0a05
--- /dev/null
+++ b/tests/bugs195/333274/Code.java
@@ -0,0 +1,39 @@
+import org.aspectj.lang.annotation.*;
+import org.aspectj.lang.*;
+
+public class Code {
+ public static void main(String []argv) {
+try {
+ foo();
+} catch (Throwable t) {
+ System.out.println("Caught "+t);
+}
+ }
+
+ public static void foo() {
+ print1("abc");
+ print2("def");
+ print1("ghi");
+ }
+
+ public static void print1(String s) {
+ System.out.println(s);
+ }
+
+ public static void print2(String s) {
+ System.out.println(s);
+ }
+}
+
+@Aspect
+class Azpect {
+ @Around("call(* print2(..))")
+ public Object one(ProceedingJoinPoint pjp) {
+ return pjp.proceed();
+ }
+ @Around("call(* print2(..))")
+ public Object two(ProceedingJoinPoint pjp) {
+ //return pjp.proceed();
+ throw new IllegalStateException("");
+ }
+}