aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr239649/Thirteen.java
diff options
context:
space:
mode:
authoraclement <aclement>2011-08-12 17:39:57 +0000
committeraclement <aclement>2011-08-12 17:39:57 +0000
commit22b6f012cb3c2b03b77d043a6234583bf2a417a2 (patch)
tree4e2663a8613aaa8f731a69de59e762b3473823a3 /tests/bugs1612/pr239649/Thirteen.java
parentd05a18f50a36dd99c3abb03e11cd97d99d4edbb9 (diff)
downloadaspectj-22b6f012cb3c2b03b77d043a6234583bf2a417a2.tar.gz
aspectj-22b6f012cb3c2b03b77d043a6234583bf2a417a2.zip
239649
Diffstat (limited to 'tests/bugs1612/pr239649/Thirteen.java')
-rw-r--r--tests/bugs1612/pr239649/Thirteen.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs1612/pr239649/Thirteen.java b/tests/bugs1612/pr239649/Thirteen.java
new file mode 100644
index 000000000..aa18dc0ab
--- /dev/null
+++ b/tests/bugs1612/pr239649/Thirteen.java
@@ -0,0 +1,22 @@
+public class Thirteen {
+ public static void main(String[] argv) {
+ Thirteen a = new Thirteen();
+ a.m("abc");
+ }
+
+ public void m(String s) {
+ System.out.println("Method m() running");
+ }
+}
+
+aspect X {
+
+ static boolean printit(Object o) {
+ System.out.println("instance is "+o.getClass().getName());
+return true;
+ }
+
+ before(String s):args(s) && execution(* m(..)) && if(printit(thisAspectInstance)){
+ System.out.println("In advice() arg="+s+" tjpsp="+thisJoinPointStaticPart);
+ }
+}