diff options
author | Andy Clement <aclement@pivotal.io> | 2018-09-29 07:47:57 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2018-09-29 07:47:57 -0700 |
commit | f6d9aaaf05eca3aaf06d3a769a83f302b0501dca (patch) | |
tree | f2f8b3c99f0bd2a77a570f1bf230c2d7aca23647 /tests/bugs192/537825 | |
parent | 8aeb774d210a42240f2d6d89dd89e947a084fd7f (diff) | |
download | aspectj-f6d9aaaf05eca3aaf06d3a769a83f302b0501dca.tar.gz aspectj-f6d9aaaf05eca3aaf06d3a769a83f302b0501dca.zip |
1.9.2.RC1 changesV1_9_2_RC1
Diffstat (limited to 'tests/bugs192/537825')
-rw-r--r-- | tests/bugs192/537825/Code.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/bugs192/537825/Code.java b/tests/bugs192/537825/Code.java new file mode 100644 index 000000000..fa97b47c6 --- /dev/null +++ b/tests/bugs192/537825/Code.java @@ -0,0 +1,53 @@ +public class Code { + + public static void main(String[] args) { + A.methodA(); + } + +} + +class A { + + public static void methodA() { + B.methodB(); + } + +} + +class B { + + public static void methodB() { + C.methodC(); + int a = 1; + int b = 2; + System.out.println( a + b ); + } + +} + +class C { + + public static void methodC() { + D.methodD(); + } + +} + +class D { + + public static void methodD() { + + } + +} + +aspect CFlow { + + public pointcut flow() : cflow(call( * B.methodB() ) ) && !within(CFlow); + + before() : flow() { + System.out.println( thisJoinPoint ); + } + +} + |