diff options
author | aclement <aclement> | 2006-03-29 11:41:39 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-03-29 11:41:39 +0000 |
commit | e05ab26570eeb1776836d67e980c37e0813e30e3 (patch) | |
tree | 2df8a29d1e469caf0f5aaaf7591dd42bb0dc4ee8 /tests/src | |
parent | 09406a36994865a841d9b40dff734975dd75f4d2 (diff) | |
download | aspectj-e05ab26570eeb1776836d67e980c37e0813e30e3.tar.gz aspectj-e05ab26570eeb1776836d67e980c37e0813e30e3.zip |
test and fix for @DeclareParents problem where the target was "@Coloured *" - fix was to resolve the typepattern
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | 6 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc151/ajc151.xml | 38 |
2 files changed, 43 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java index 383fc05b3..a5447eaab 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java @@ -24,8 +24,12 @@ import org.aspectj.systemtest.ajc150.GenericsTests; import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + // public void testItdOnInnerTypeOfGenericType_pr132349() { runTest("ITD on inner type of generic type");} + + // Some @DeclareParents testing + public void testAtDecp_1() { runTest("atDecp - simple");} + public void testAtDecp_2() { runTest("atDecp - annotation");} - // public void testItdOnInnerTypeOfGenericType_pr132349() { runTest("ITD on inner type of generic type");} public void testAnnotationsAndItds_pr98901() { runTest("annotations and itds");} public void testAnnotationsAndItds_pr98901_2() { runTest("annotations and itds - 2");} public void testCircularGenerics_pr133307() { runTest("circular generics");} diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml index d863a24b2..a9ec5f59b 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml +++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml @@ -3,6 +3,44 @@ <!-- AspectJ v1.5.1 Tests --> <suite> + <!-- atDecp begin --> + + <!-- something simple --> + <ajc-test dir="bugs151/atDecp/case1" title="atDecp - simple"> + <compile files="MainClass.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Extending interface set for type 'moody.AnnotationMoodImplementor' (MainClass.java) to include 'moody.AnnotationMoodIndicator$Moody' (MainClass.java)"/> + <message kind="weave" text="Type 'moody.AnnotationMoodImplementor' (MainClass.java) has intertyped method from 'moody.AnnotationMoodIndicator' (MainClass.java:'moody.Mood moody.AnnotationMoodIndicator$Moody.getMood()')"/> + <message kind="weave" text="Type 'moody.AnnotationMoodImplementor' (MainClass.java) has intertyped method from 'moody.AnnotationMoodIndicator' (MainClass.java:'void moody.AnnotationMoodIndicator$Moody.setMood(moody.Mood)')"/> + </compile> + <run class="moody.MainClass"> + <stderr> + <line text="ami0's mood is HAPPY"/> + <line text="ami1's mood is now JOLLY"/> + <line text="ami0's mood is still HAPPY"/> + </stderr> + </run> + </ajc-test> + + <!-- applying parent based on annotation --> + <ajc-test dir="bugs151/atDecp/case2" title="atDecp - annotation"> + <compile files="MainClass.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Extending interface set for type 'moody.AnnotationMoodImplementor' (MainClass.java) to include 'moody.AnnotationMoodIndicator$Moody' (MainClass.java)"/> + <message kind="weave" text="Type 'moody.AnnotationMoodImplementor' (MainClass.java) has intertyped method from 'moody.AnnotationMoodIndicator' (MainClass.java:'moody.Mood moody.AnnotationMoodIndicator$Moody.getMood()')"/> + <message kind="weave" text="Type 'moody.AnnotationMoodImplementor' (MainClass.java) has intertyped method from 'moody.AnnotationMoodIndicator' (MainClass.java:'void moody.AnnotationMoodIndicator$Moody.setMood(moody.Mood)')"/> + </compile> + <run class="moody.MainClass"> + <stderr> + <line text="ami0's mood is HAPPY"/> + <line text="ami1's mood is now JOLLY"/> + <line text="ami0's mood is still HAPPY"/> + </stderr> + </run> + </ajc-test> + + + <!-- atDecp end --> + + <ajc-test dir="bugs151/pr132349" title="ITD on inner type of generic type"> <compile files="TopLevelType.java" options="-1.5"/> </ajc-test> |