diff options
Diffstat (limited to 'tests/bugs1612/pr239649/Seven.java')
-rw-r--r-- | tests/bugs1612/pr239649/Seven.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs1612/pr239649/Seven.java b/tests/bugs1612/pr239649/Seven.java new file mode 100644 index 000000000..782a27251 --- /dev/null +++ b/tests/bugs1612/pr239649/Seven.java @@ -0,0 +1,21 @@ +public class Seven { + public static void main(String[] argv) { + Seven a = new Seven(); + a.m(); + } + + public void m() { + System.out.println("Method m() running"); + } +} + +aspect X { + boolean doit() { + System.out.println("In instance check method doit()"); + return true; + } + + before(): call(* m(..)) && if(thisAspectInstance.doit()){ + System.out.println("In advice() "+thisJoinPoint+" "+thisEnclosingJoinPointStaticPart); + } +} |