From: avasseur Date: Mon, 19 Dec 2005 13:32:33 +0000 (+0000) Subject: fix new syntax @decp X-Git-Tag: POST_MEMORY_CHANGES~226 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1037edc26d22c437b3b9a399c31938ce063ce29;p=aspectj.git fix new syntax @decp --- diff --git a/tests/bugs150/pr117681/MoodIndicator.java b/tests/bugs150/pr117681/MoodIndicator.java index ec420ad86..c6e47e1f3 100644 --- a/tests/bugs150/pr117681/MoodIndicator.java +++ b/tests/bugs150/pr117681/MoodIndicator.java @@ -23,8 +23,8 @@ public class MoodIndicator { // here is the actual ITD syntax when using @AspectJ // public static is mandatory // the field type must be the introduced interface. It can't be a class. - @DeclareParents("C") - public static Moody introduced = new MoodyImpl(); + @DeclareParents(value="C", defaultImpl=MoodyImpl.class) + Moody introduced; // @Before("execution(* *.*(..)) && this(m)") // public void feelingMoody(Moody m) { diff --git a/tests/bugs150/pr117681/TestAspect.java b/tests/bugs150/pr117681/TestAspect.java index 331677476..9657d6cd5 100644 --- a/tests/bugs150/pr117681/TestAspect.java +++ b/tests/bugs150/pr117681/TestAspect.java @@ -2,6 +2,6 @@ import org.aspectj.lang.annotation.*; @Aspect public class TestAspect { - @DeclareParents("Test") - public static Audit introduced = new AuditImpl(); + @DeclareParents(value="Test", defaultImpl=AuditImpl.class) + Audit introduced; }