summaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoravasseur <avasseur>2005-12-19 13:43:13 +0000
committeravasseur <avasseur>2005-12-19 13:43:13 +0000
commitff86d25cf8e188086666dce1e3ac70a6ac84d33a (patch)
tree4a982a2f2f3b02ec7c16b48b3bcf5a282eda4ea4 /tests/java5
parenta1037edc26d22c437b3b9a399c31938ce063ce29 (diff)
downloadaspectj-ff86d25cf8e188086666dce1e3ac70a6ac84d33a.tar.gz
aspectj-ff86d25cf8e188086666dce1e3ac70a6ac84d33a.zip
fix new syntax @decp
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTest.java5
-rw-r--r--tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTestAspect.java7
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTest.java b/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTest.java
index 5e1a7d3c0..fad0d8488 100644
--- a/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTest.java
+++ b/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTest.java
@@ -39,8 +39,9 @@ public class DeclareParentsImplementsReweavableTest extends TestCase {
@Aspect
static class TestAspect {
- @DeclareParents("ataspectj.DeclareParentsImplementsReweavableTest.Target")
- public static I1 i1 = new Imp1();
+ @DeclareParents(value="ataspectj.DeclareParentsImplementsReweavableTest.Target",
+ defaultImpl = Imp1.class)
+ public static I1 i1;
}
public void testDecPInt() {
diff --git a/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTestAspect.java b/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTestAspect.java
index c75585f75..60a6ca42f 100644
--- a/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTestAspect.java
+++ b/tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTestAspect.java
@@ -20,7 +20,10 @@ import org.aspectj.lang.annotation.DeclareParents;
@Aspect
public class DeclareParentsImplementsReweavableTestAspect {
- @DeclareParents("ataspectj.DeclareParentsImplementsReweavableTest.Target")
- public static DeclareParentsImplementsReweavableTest.I2 i2 = new DeclareParentsImplementsReweavableTest.Imp2();
+ @DeclareParents(
+ value="ataspectj.DeclareParentsImplementsReweavableTest.Target",
+ defaultImpl = DeclareParentsImplementsReweavableTest.Imp2.class
+ )
+ public static DeclareParentsImplementsReweavableTest.I2 i2;
}