aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr162135/Foo.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs153/pr162135/Foo.java')
-rw-r--r--tests/bugs153/pr162135/Foo.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bugs153/pr162135/Foo.java b/tests/bugs153/pr162135/Foo.java
index df4211a4b..0d408e3c8 100644
--- a/tests/bugs153/pr162135/Foo.java
+++ b/tests/bugs153/pr162135/Foo.java
@@ -6,15 +6,19 @@ import org.aspectj.lang.annotation.Pointcut;
@Aspect public class Foo {
+ static class X {
public void m() {
new RuntimeException("hello");
}
+ }
public static void main(String[] argv) {
+ new X().m();
}
@Pointcut("call(Throwable+.new(String, ..)) && this(caller) && if()")
public static boolean exceptionInitializer(Object caller) {
+ System.out.println("In if(), is there a caller? "+(caller!=null?"yes":"no"));
return true;
}