]> source.dussan.org Git - aspectj.git/commitdiff
new test code - related to 134471
authoraclement <aclement>
Wed, 10 May 2006 10:54:47 +0000 (10:54 +0000)
committeraclement <aclement>
Wed, 10 May 2006 10:54:47 +0000 (10:54 +0000)
12 files changed:
tests/multiIncremental/P3/base/pack/A.aj [new file with mode: 0644]
tests/multiIncremental/P3/base/pack/C.java [new file with mode: 0644]
tests/multiIncremental/P3/inc1/pack/C.java [new file with mode: 0644]
tests/multiIncremental/P3/inc2/pack/C.java [new file with mode: 0644]
tests/multiIncremental/P4/base/pack/A.aj [new file with mode: 0644]
tests/multiIncremental/P4/base/pack/C.java [new file with mode: 0644]
tests/multiIncremental/P4/inc1/pack/C.java [new file with mode: 0644]
tests/multiIncremental/PR134471_3/base/pkg/A.aj [new file with mode: 0644]
tests/multiIncremental/PR134471_3/base/pkg/C.java [new file with mode: 0644]
tests/multiIncremental/PR134471_3/inc1/pkg/A.aj [new file with mode: 0644]
tests/multiIncremental/PR134471_3/inc2/pkg/A.aj [new file with mode: 0644]
tests/multiIncremental/PR134471_3/inc3/pkg/C.java [new file with mode: 0644]

diff --git a/tests/multiIncremental/P3/base/pack/A.aj b/tests/multiIncremental/P3/base/pack/A.aj
new file mode 100644 (file)
index 0000000..ebe30af
--- /dev/null
@@ -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 (file)
index 0000000..df86726
--- /dev/null
@@ -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 (file)
index 0000000..5ab82e0
--- /dev/null
@@ -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 (file)
index 0000000..df86726
--- /dev/null
@@ -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 (file)
index 0000000..7c4f93c
--- /dev/null
@@ -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 (file)
index 0000000..277fdee
--- /dev/null
@@ -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 (file)
index 0000000..49ef19c
--- /dev/null
@@ -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 (file)
index 0000000..1af24f0
--- /dev/null
@@ -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 (file)
index 0000000..29d1321
--- /dev/null
@@ -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 (file)
index 0000000..05753f3
--- /dev/null
@@ -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 (file)
index 0000000..05753f3
--- /dev/null
@@ -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 (file)
index 0000000..29d1321
--- /dev/null
@@ -0,0 +1,12 @@
+package pkg;
+
+public class C {
+       
+       public void method(){
+               new C().foo();
+               new C().goo();
+       }
+       
+       public void foo() { }
+       public void goo() { }
+}