]> source.dussan.org Git - aspectj.git/commitdiff
testcode for 133532 (case 2 is simpler)
authoraclement <aclement>
Mon, 3 Apr 2006 15:23:44 +0000 (15:23 +0000)
committeraclement <aclement>
Mon, 3 Apr 2006 15:23:44 +0000 (15:23 +0000)
tests/multiIncremental/PR133532/base/pkg/A.aj [new file with mode: 0644]
tests/multiIncremental/PR133532/base/pkg/AbstractClass.java [new file with mode: 0644]
tests/multiIncremental/PR133532/inc1/pkg/A.aj [new file with mode: 0644]
tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java [new file with mode: 0644]
tests/multiIncremental/pr133532_2/base/pkg/A.aj [new file with mode: 0644]
tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java [new file with mode: 0644]
tests/multiIncremental/pr133532_2/inc1/pkg/A.aj [new file with mode: 0644]
tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java [new file with mode: 0644]

diff --git a/tests/multiIncremental/PR133532/base/pkg/A.aj b/tests/multiIncremental/PR133532/base/pkg/A.aj
new file mode 100644 (file)
index 0000000..bd4c2ba
--- /dev/null
@@ -0,0 +1,10 @@
+package pkg;
+
+public privileged aspect A {
+
+       public static int F_PRIVILEGED = 0x8000;
+       
+       before() : execution(int AbstractClass.getModifiers()) {
+               int i = F_PRIVILEGED;
+       }
+}
diff --git a/tests/multiIncremental/PR133532/base/pkg/AbstractClass.java b/tests/multiIncremental/PR133532/base/pkg/AbstractClass.java
new file mode 100644 (file)
index 0000000..185ca37
--- /dev/null
@@ -0,0 +1,13 @@
+package pkg;
+
+public abstract class AbstractClass {
+
+       public int getModifiers() {
+               return 1;
+       }
+       
+       public void handleFieldChanged() {
+               
+       }
+       
+}
diff --git a/tests/multiIncremental/PR133532/inc1/pkg/A.aj b/tests/multiIncremental/PR133532/inc1/pkg/A.aj
new file mode 100644 (file)
index 0000000..3772377
--- /dev/null
@@ -0,0 +1,10 @@
+package pkg;
+
+public privileged aspect A {
+
+       public static int AbstractClass.F_PRIVILEGED = 0x8000;
+
+       before() : execution(int AbstractClass.getModifiers()) {
+               int i = AbstractClass.F_PRIVILEGED;
+       }
+}
diff --git a/tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java b/tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java
new file mode 100644 (file)
index 0000000..e451a0e
--- /dev/null
@@ -0,0 +1,13 @@
+package pkg;
+
+public abstract class AbstractClass {
+
+       public int getModifiers() {
+               return 1;
+       }
+       
+       public void handleFieldChanged2() {
+               
+       }
+       
+}
diff --git a/tests/multiIncremental/pr133532_2/base/pkg/A.aj b/tests/multiIncremental/pr133532_2/base/pkg/A.aj
new file mode 100644 (file)
index 0000000..add5c3c
--- /dev/null
@@ -0,0 +1,9 @@
+package pkg;
+
+public privileged aspect A {
+
+       public static int AbstractClass.F_PRIVILEGED = 0x8000;
+       
+       //int i = AbstractClass.F_PRIVILEGED;
+       
+}
diff --git a/tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java b/tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java
new file mode 100644 (file)
index 0000000..a8baba1
--- /dev/null
@@ -0,0 +1,13 @@
+package pkg;
+
+public class AbstractClass {
+//
+//     public int getModifiers() {
+//             return 1;
+//     }
+//     
+//     public void handleFieldChanged() {
+//             
+//     }
+//     
+}
diff --git a/tests/multiIncremental/pr133532_2/inc1/pkg/A.aj b/tests/multiIncremental/pr133532_2/inc1/pkg/A.aj
new file mode 100644 (file)
index 0000000..3772377
--- /dev/null
@@ -0,0 +1,10 @@
+package pkg;
+
+public privileged aspect A {
+
+       public static int AbstractClass.F_PRIVILEGED = 0x8000;
+
+       before() : execution(int AbstractClass.getModifiers()) {
+               int i = AbstractClass.F_PRIVILEGED;
+       }
+}
diff --git a/tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java b/tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java
new file mode 100644 (file)
index 0000000..c293d02
--- /dev/null
@@ -0,0 +1,13 @@
+package pkg;
+
+public class AbstractClass {
+//
+//     public int getModifiers() {
+//             return 1;
+//     }
+//     
+//     public void handleFieldChanged2() {
+//             
+//     }
+       public void foo() {}
+}