From: aclement Date: Wed, 10 May 2006 10:54:47 +0000 (+0000) Subject: new test code - related to 134471 X-Git-Tag: V1_5_2rc1~157 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5220ac4b57132a268a3bb8cb962ee178339f798d;p=aspectj.git new test code - related to 134471 --- diff --git a/tests/multiIncremental/P3/base/pack/A.aj b/tests/multiIncremental/P3/base/pack/A.aj new file mode 100644 index 000000000..ebe30af84 --- /dev/null +++ b/tests/multiIncremental/P3/base/pack/A.aj @@ -0,0 +1,16 @@ +/** + * + */ +package pack; + +public aspect A { + + declare warning : (get(* System.out) || get(* System.err)) : "There should be no printlns"; + + pointcut p() : call(* C.method2(..)); + + before() : p() { + System.out.println("blah"); + } + +} diff --git a/tests/multiIncremental/P3/base/pack/C.java b/tests/multiIncremental/P3/base/pack/C.java new file mode 100644 index 000000000..df867268d --- /dev/null +++ b/tests/multiIncremental/P3/base/pack/C.java @@ -0,0 +1,18 @@ +package pack; + +public class C { + + public void method1() { + System.out.println("blah"); + method2(); + } + + public void method2() { + System.out.println("blah"); + } + + public void method3() { + System.out.println("blah"); + } + +} diff --git a/tests/multiIncremental/P3/inc1/pack/C.java b/tests/multiIncremental/P3/inc1/pack/C.java new file mode 100644 index 000000000..5ab82e0f3 --- /dev/null +++ b/tests/multiIncremental/P3/inc1/pack/C.java @@ -0,0 +1,18 @@ +package pack; + +public class C { + + public void method1() { + System.out.println("blah"); + method2(); + } + + public void method2() { +// System.out.println("blah"); + } + + public void method3() { + System.out.println("blah"); + } + +} diff --git a/tests/multiIncremental/P3/inc2/pack/C.java b/tests/multiIncremental/P3/inc2/pack/C.java new file mode 100644 index 000000000..df867268d --- /dev/null +++ b/tests/multiIncremental/P3/inc2/pack/C.java @@ -0,0 +1,18 @@ +package pack; + +public class C { + + public void method1() { + System.out.println("blah"); + method2(); + } + + public void method2() { + System.out.println("blah"); + } + + public void method3() { + System.out.println("blah"); + } + +} diff --git a/tests/multiIncremental/P4/base/pack/A.aj b/tests/multiIncremental/P4/base/pack/A.aj new file mode 100644 index 000000000..7c4f93c34 --- /dev/null +++ b/tests/multiIncremental/P4/base/pack/A.aj @@ -0,0 +1,10 @@ +package pack; + +public aspect A { + + pointcut p() : call(* C.method2(..)); + + before() : p() { + } + +} diff --git a/tests/multiIncremental/P4/base/pack/C.java b/tests/multiIncremental/P4/base/pack/C.java new file mode 100644 index 000000000..277fdeec8 --- /dev/null +++ b/tests/multiIncremental/P4/base/pack/C.java @@ -0,0 +1,16 @@ +package pack; + +public class C { + + public void method1() { + method2(); + } + + public void method2() { + } + + public void method3() { + method2(); + } + +} diff --git a/tests/multiIncremental/P4/inc1/pack/C.java b/tests/multiIncremental/P4/inc1/pack/C.java new file mode 100644 index 000000000..49ef19cd2 --- /dev/null +++ b/tests/multiIncremental/P4/inc1/pack/C.java @@ -0,0 +1,16 @@ +package pack; + +public class C { + + public void method1() { +// method2(); + } + + public void method2() { + } + + public void method3() { + method2(); + } + +} diff --git a/tests/multiIncremental/PR134471_3/base/pkg/A.aj b/tests/multiIncremental/PR134471_3/base/pkg/A.aj new file mode 100644 index 000000000..1af24f09a --- /dev/null +++ b/tests/multiIncremental/PR134471_3/base/pkg/A.aj @@ -0,0 +1,12 @@ +package pkg; + +public aspect A { + + pointcut p() : call(* foo(..)); + + before() : p() { } + + + declare warning: call (* goo(..)): "goo called!!"; +} + diff --git a/tests/multiIncremental/PR134471_3/base/pkg/C.java b/tests/multiIncremental/PR134471_3/base/pkg/C.java new file mode 100644 index 000000000..29d13219f --- /dev/null +++ b/tests/multiIncremental/PR134471_3/base/pkg/C.java @@ -0,0 +1,12 @@ +package pkg; + +public class C { + + public void method(){ + new C().foo(); + new C().goo(); + } + + public void foo() { } + public void goo() { } +} diff --git a/tests/multiIncremental/PR134471_3/inc1/pkg/A.aj b/tests/multiIncremental/PR134471_3/inc1/pkg/A.aj new file mode 100644 index 000000000..05753f3d3 --- /dev/null +++ b/tests/multiIncremental/PR134471_3/inc1/pkg/A.aj @@ -0,0 +1,14 @@ +package pkg; + +public aspect A { + + pointcut p() : call(* foo(..)); + + before() : p() { } + + + + + declare warning: call (* goo(..)): "goo called!!"; +} + diff --git a/tests/multiIncremental/PR134471_3/inc2/pkg/A.aj b/tests/multiIncremental/PR134471_3/inc2/pkg/A.aj new file mode 100644 index 000000000..05753f3d3 --- /dev/null +++ b/tests/multiIncremental/PR134471_3/inc2/pkg/A.aj @@ -0,0 +1,14 @@ +package pkg; + +public aspect A { + + pointcut p() : call(* foo(..)); + + before() : p() { } + + + + + declare warning: call (* goo(..)): "goo called!!"; +} + diff --git a/tests/multiIncremental/PR134471_3/inc3/pkg/C.java b/tests/multiIncremental/PR134471_3/inc3/pkg/C.java new file mode 100644 index 000000000..29d13219f --- /dev/null +++ b/tests/multiIncremental/PR134471_3/inc3/pkg/C.java @@ -0,0 +1,12 @@ +package pkg; + +public class C { + + public void method(){ + new C().foo(); + new C().goo(); + } + + public void foo() { } + public void goo() { } +}