summaryrefslogtreecommitdiffstats
path: root/tests/src/org
diff options
context:
space:
mode:
authoraclement <aclement>2006-02-16 16:50:34 +0000
committeraclement <aclement>2006-02-16 16:50:34 +0000
commite87458179ab929aae2bc6966a6e092813bdd14a3 (patch)
tree5cfbcdad74346a29b3d65791c5dabc2563cbfe70 /tests/src/org
parentd4219e12eaa86ed810392364931a92324dc2a67f (diff)
downloadaspectj-e87458179ab929aae2bc6966a6e092813bdd14a3.tar.gz
aspectj-e87458179ab929aae2bc6966a6e092813bdd14a3.zip
test and fix for 122370 (Andy & Helen) - code generated for @Decp busted.
Diffstat (limited to 'tests/src/org')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/ajc151.xml11
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
index 24b006fd2..95a246013 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
@@ -164,6 +164,10 @@ public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("@AJ without JoinPoint import");
}
+ public void testAtAspectDeclareParentsRetainsFieldState_pr122370() {
+ runTest("@AJ declare parents retains field state");
+ }
+
/*
* Load-time weaving bugs and enhancements
*/
diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
index 46e8bc97d..c470c67bf 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
+++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
@@ -182,6 +182,17 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs151/pr122370" title="@AJ declare parents retains field state">
+ <compile files="moody/AnnotationMoodImplementor.java, moody/AnnotationMoodIndicator.java, moody/Mood.java, moody/MainClass.java" options="-1.5"/>
+ <run class="moody.MainClass">
+ <stdout>
+ <line text="ami0's mood is HAPPY"/>
+ <line text="ami1's mood is now JOLLY"/>
+ <line text="ami0's mood is still HAPPY"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
<!-- New features down here... when they arent big enough to have their own test file -->
<ajc-test dir="features151/ptw" title="exposing withintype">