diff options
author | avasseur <avasseur> | 2005-12-19 13:09:20 +0000 |
---|---|---|
committer | avasseur <avasseur> | 2005-12-19 13:09:20 +0000 |
commit | 2afe12a528f424404d4c88a0db65602fce78254e (patch) | |
tree | 473d06f36ff723c4af7f7998f8c1a582950dcd84 /tests | |
parent | 4676acbde531b3c00f5572ff4053435e9ba9b1eb (diff) | |
download | aspectj-2afe12a528f424404d4c88a0db65602fce78254e.tar.gz aspectj-2afe12a528f424404d4c88a0db65602fce78254e.zip |
rearchitect @decp
Diffstat (limited to 'tests')
-rw-r--r-- | tests/java5/ataspectj/ataspectj/DeclareParentsImplementsTest.java | 7 | ||||
-rw-r--r-- | tests/java5/ataspectj/ataspectj/DeclareParentsInterfaceTest.java | 3 | ||||
-rw-r--r-- | tests/ltw/aop-abstractaspect.xml | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsTest.java b/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsTest.java index 8b701a28e..b4cc9ed4e 100644 --- a/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsTest.java +++ b/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsTest.java @@ -50,10 +50,11 @@ public class DeclareParentsImplementsTest extends TestCase { @Aspect static class TestAspect { - @DeclareParents("ataspectj.DeclareParentsImplementsTest.Target") - public static Introduced i = new Implementation();//see here control of instantiation + @DeclareParents(value="ataspectj.DeclareParentsImplementsTest.Target", + defaultImpl=Implementation.class) + public static Introduced i; // will lead to: class Target implements Introduced { - // void intro(args) { TestAspect.i.intro(args); } + // void intro(args) { delegate to some hidden field, lazy initialized here for now } // } @Before("execution(* ataspectj.DeclareParentsImplementsTest.Introduced.intro())") diff --git a/tests/java5/ataspectj/ataspectj/DeclareParentsInterfaceTest.java b/tests/java5/ataspectj/ataspectj/DeclareParentsInterfaceTest.java index ffac0e4a2..2823251e5 100644 --- a/tests/java5/ataspectj/ataspectj/DeclareParentsInterfaceTest.java +++ b/tests/java5/ataspectj/ataspectj/DeclareParentsInterfaceTest.java @@ -15,6 +15,7 @@ import junit.framework.TestCase; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.DeclareImplements; +import org.aspectj.lang.annotation.DeclareParents; import java.util.Arrays; @@ -34,7 +35,7 @@ public class DeclareParentsInterfaceTest extends TestCase { @Aspect static class TestAspect { - @DeclareImplements("ataspectj.DeclareParentsInterfaceTest.Target") + @DeclareParents("ataspectj.DeclareParentsInterfaceTest.Target") Marker introduce; @Before("execution(* ataspectj.DeclareParentsInterfaceTest.Marker+.target())") diff --git a/tests/ltw/aop-abstractaspect.xml b/tests/ltw/aop-abstractaspect.xml index 7f82c94ee..00d541d5b 100644 --- a/tests/ltw/aop-abstractaspect.xml +++ b/tests/ltw/aop-abstractaspect.xml @@ -5,4 +5,4 @@ <weaver options="-showWeaveInfo"/> </aspectj> - + |