From ff86d25cf8e188086666dce1e3ac70a6ac84d33a Mon Sep 17 00:00:00 2001 From: avasseur Date: Mon, 19 Dec 2005 13:43:13 +0000 Subject: [PATCH] fix new syntax @decp --- .../ataspectj/DeclareParentsImplementsReweavableTest.java | 5 +++-- .../DeclareParentsImplementsReweavableTestAspect.java | 7 +++++-- 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; } -- 2.39.5