aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features190/efficientTJP/Four.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features190/efficientTJP/Four.java')
-rw-r--r--tests/features190/efficientTJP/Four.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/features190/efficientTJP/Four.java b/tests/features190/efficientTJP/Four.java
new file mode 100644
index 000000000..9857c8c62
--- /dev/null
+++ b/tests/features190/efficientTJP/Four.java
@@ -0,0 +1,21 @@
+public class Four {
+ public static void main(String []argv) {
+ new Four().run();
+ }
+
+ public void run() {
+ try {
+ System.out.println("run() running");
+ throw new IllegalStateException();
+ } catch (Throwable t) {
+ System.out.println("caught something");
+ }
+ }
+
+}
+
+aspect X {
+ before(Throwable t): handler(Throwable) && args(t) {
+ System.out.println(thisJoinPointStaticPart.getSignature());
+ }
+}