summaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-10 10:54:47 +0000
committeraclement <aclement>2006-05-10 10:54:47 +0000
commit5220ac4b57132a268a3bb8cb962ee178339f798d (patch)
tree61d9cc4d226823e7c12bcdf17c6e1380367ffa59 /tests/multiIncremental
parentb8012ae0d61684a40ebb86990f023d3d209e8d32 (diff)
downloadaspectj-5220ac4b57132a268a3bb8cb962ee178339f798d.tar.gz
aspectj-5220ac4b57132a268a3bb8cb962ee178339f798d.zip
new test code - related to 134471
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r--tests/multiIncremental/P3/base/pack/A.aj16
-rw-r--r--tests/multiIncremental/P3/base/pack/C.java18
-rw-r--r--tests/multiIncremental/P3/inc1/pack/C.java18
-rw-r--r--tests/multiIncremental/P3/inc2/pack/C.java18
-rw-r--r--tests/multiIncremental/P4/base/pack/A.aj10
-rw-r--r--tests/multiIncremental/P4/base/pack/C.java16
-rw-r--r--tests/multiIncremental/P4/inc1/pack/C.java16
-rw-r--r--tests/multiIncremental/PR134471_3/base/pkg/A.aj12
-rw-r--r--tests/multiIncremental/PR134471_3/base/pkg/C.java12
-rw-r--r--tests/multiIncremental/PR134471_3/inc1/pkg/A.aj14
-rw-r--r--tests/multiIncremental/PR134471_3/inc2/pkg/A.aj14
-rw-r--r--tests/multiIncremental/PR134471_3/inc3/pkg/C.java12
12 files changed, 176 insertions, 0 deletions
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() { }
+}