Quellcode durchsuchen

133532 - testcode for latest case

tags/BEFORE_133532
aclement vor 17 Jahren
Ursprung
Commit
59b06d3858

+ 20
- 0
tests/multiIncremental/PR133532_3/base/pkg/ANewTypeWizardPage.aj Datei anzeigen

@@ -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;
}
}
}

+ 18
- 0
tests/multiIncremental/PR133532_3/base/pkg/NewTypeWizardPage.java Datei anzeigen

@@ -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) {
}
}

+ 20
- 0
tests/multiIncremental/PR133532_3/inc1/pkg/ANewTypeWizardPage.aj Datei anzeigen

@@ -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;
}
}
}

Laden…
Abbrechen
Speichern