]> source.dussan.org Git - aspectj.git/commitdiff
fix new syntax @decp
authoravasseur <avasseur>
Mon, 19 Dec 2005 13:43:13 +0000 (13:43 +0000)
committeravasseur <avasseur>
Mon, 19 Dec 2005 13:43:13 +0000 (13:43 +0000)
tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTest.java
tests/java5/ataspectj/ataspectj/DeclareParentsImplementsReweavableTestAspect.java

index 5e1a7d3c08d8e5fb6560603b540176fe4d8cd992..fad0d8488df387aac65d0b37ded56b1ae2f1aacc 100644 (file)
@@ -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() {
index c75585f75cb64e7d201a7a4dd367219c260bc456..60a6ca42f916a7bf4d20181691178cdd6c4e412c 100644 (file)
@@ -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;
 
 }