summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-04-03 15:23:44 +0000
committeraclement <aclement>2006-04-03 15:23:44 +0000
commit864b70d3a3e6f32d874acddaff17f21694d2b08f (patch)
tree11c3f5d67ee8a6de0729a08c13e1ce27f2302f22
parentf0958f1f8aa2ef171320573f53d1690534abed99 (diff)
downloadaspectj-864b70d3a3e6f32d874acddaff17f21694d2b08f.tar.gz
aspectj-864b70d3a3e6f32d874acddaff17f21694d2b08f.zip
testcode for 133532 (case 2 is simpler)
-rw-r--r--tests/multiIncremental/PR133532/base/pkg/A.aj10
-rw-r--r--tests/multiIncremental/PR133532/base/pkg/AbstractClass.java13
-rw-r--r--tests/multiIncremental/PR133532/inc1/pkg/A.aj10
-rw-r--r--tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java13
-rw-r--r--tests/multiIncremental/pr133532_2/base/pkg/A.aj9
-rw-r--r--tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java13
-rw-r--r--tests/multiIncremental/pr133532_2/inc1/pkg/A.aj10
-rw-r--r--tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java13
8 files changed, 91 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR133532/base/pkg/A.aj b/tests/multiIncremental/PR133532/base/pkg/A.aj
new file mode 100644
index 000000000..bd4c2ba34
--- /dev/null
+++ b/tests/multiIncremental/PR133532/base/pkg/A.aj
@@ -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
index 000000000..185ca3702
--- /dev/null
+++ b/tests/multiIncremental/PR133532/base/pkg/AbstractClass.java
@@ -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
index 000000000..37723778e
--- /dev/null
+++ b/tests/multiIncremental/PR133532/inc1/pkg/A.aj
@@ -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
index 000000000..e451a0e0d
--- /dev/null
+++ b/tests/multiIncremental/PR133532/inc2/pkg/AbstractClass.java
@@ -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
index 000000000..add5c3cea
--- /dev/null
+++ b/tests/multiIncremental/pr133532_2/base/pkg/A.aj
@@ -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
index 000000000..a8baba11e
--- /dev/null
+++ b/tests/multiIncremental/pr133532_2/base/pkg/AbstractClass.java
@@ -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
index 000000000..37723778e
--- /dev/null
+++ b/tests/multiIncremental/pr133532_2/inc1/pkg/A.aj
@@ -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
index 000000000..c293d02f6
--- /dev/null
+++ b/tests/multiIncremental/pr133532_2/inc2/pkg/AbstractClass.java
@@ -0,0 +1,13 @@
+package pkg;
+
+public class AbstractClass {
+//
+// public int getModifiers() {
+// return 1;
+// }
+//
+// public void handleFieldChanged2() {
+//
+// }
+ public void foo() {}
+}