aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs192/537825/Code.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs192/537825/Code.java')
-rw-r--r--tests/bugs192/537825/Code.java53
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 );
+ }
+
+}
+