@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() {
@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;
}