summaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental
diff options
context:
space:
mode:
authoraclement <aclement>2006-09-27 08:25:06 +0000
committeraclement <aclement>2006-09-27 08:25:06 +0000
commit59b06d385800f2337787f2b34b06f1a9e19aec32 (patch)
treebe4e9fb657063f4b5bd34426c2d2fc2095cab060 /tests/multiIncremental
parentd7dbfc08d0cb7a9bdacde642d6dd8d3b948edc79 (diff)
downloadaspectj-59b06d385800f2337787f2b34b06f1a9e19aec32.tar.gz
aspectj-59b06d385800f2337787f2b34b06f1a9e19aec32.zip
133532 - testcode for latest case
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r--tests/multiIncremental/PR133532_3/base/pkg/ANewTypeWizardPage.aj20
-rw-r--r--tests/multiIncremental/PR133532_3/base/pkg/NewTypeWizardPage.java18
-rw-r--r--tests/multiIncremental/PR133532_3/inc1/pkg/ANewTypeWizardPage.aj20
3 files changed, 58 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR133532_3/base/pkg/ANewTypeWizardPage.aj b/tests/multiIncremental/PR133532_3/base/pkg/ANewTypeWizardPage.aj
new file mode 100644
index 000000000..a989f4571
--- /dev/null
+++ b/tests/multiIncremental/PR133532_3/base/pkg/ANewTypeWizardPage.aj
@@ -0,0 +1,20 @@
+package pkg;
+
+public aspect ANewTypeWizardPage {
+
+ public static int NewTypeWizardPage.F_PRIVILEGED = 1;
+
+ after() : execution(* NewTypeWizardPage.setModifiers(..)) {
+ if(NewTypeWizardPage.F_PRIVILEGED != 0) {
+
+ }
+ }
+
+ before() : execution(int NewTypeWizardPage.getModifiers()) {
+ int i = 0;
+ if (((NewTypeWizardPage)thisJoinPoint.getThis()).isTrue()) {
+ i = NewTypeWizardPage.F_PRIVILEGED;
+ }
+ }
+
+}
diff --git a/tests/multiIncremental/PR133532_3/base/pkg/NewTypeWizardPage.java b/tests/multiIncremental/PR133532_3/base/pkg/NewTypeWizardPage.java
new file mode 100644
index 000000000..8c741769f
--- /dev/null
+++ b/tests/multiIncremental/PR133532_3/base/pkg/NewTypeWizardPage.java
@@ -0,0 +1,18 @@
+package pkg;
+
+public class NewTypeWizardPage {
+
+ public int getModifiers() {
+ return 1;
+ }
+
+ public boolean isTrue() {
+ return true;
+ }
+
+ public void setModifiers(int modifiers,
+ boolean canBeModified) {
+
+ }
+
+}
diff --git a/tests/multiIncremental/PR133532_3/inc1/pkg/ANewTypeWizardPage.aj b/tests/multiIncremental/PR133532_3/inc1/pkg/ANewTypeWizardPage.aj
new file mode 100644
index 000000000..9fa5c1606
--- /dev/null
+++ b/tests/multiIncremental/PR133532_3/inc1/pkg/ANewTypeWizardPage.aj
@@ -0,0 +1,20 @@
+package pkg;
+
+public aspect ANewTypeWizardPage {
+
+ public static int NewTypeWizardPage.F_PRIVILEGED = 2;
+
+ after() : execution(* NewTypeWizardPage.setModifiers(..)) {
+ if(NewTypeWizardPage.F_PRIVILEGED != 0) {
+
+ }
+ }
+
+ before() : execution(int NewTypeWizardPage.getModifiers()) {
+ int i = 0;
+ if (((NewTypeWizardPage)thisJoinPoint.getThis()).isTrue()) {
+ i = NewTypeWizardPage.F_PRIVILEGED;
+ }
+ }
+
+}