summaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoravasseur <avasseur>2005-12-19 13:09:20 +0000
committeravasseur <avasseur>2005-12-19 13:09:20 +0000
commit2afe12a528f424404d4c88a0db65602fce78254e (patch)
tree473d06f36ff723c4af7f7998f8c1a582950dcd84 /tests/java5
parent4676acbde531b3c00f5572ff4053435e9ba9b1eb (diff)
downloadaspectj-2afe12a528f424404d4c88a0db65602fce78254e.tar.gz
aspectj-2afe12a528f424404d4c88a0db65602fce78254e.zip
rearchitect @decp
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/ataspectj/ataspectj/DeclareParentsImplementsTest.java7
-rw-r--r--tests/java5/ataspectj/ataspectj/DeclareParentsInterfaceTest.java3
2 files changed, 6 insertions, 4 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())")