From: acolyer Date: Thu, 22 Dec 2005 10:01:40 +0000 (+0000) Subject: doc fix for @DeclareParents X-Git-Tag: POST_MEMORY_CHANGES~197 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=06c7f82ea977dc9c03b249f9c65289555496c925;p=aspectj.git doc fix for @DeclareParents --- diff --git a/docs/adk15ProgGuideDB/ataspectj.xml b/docs/adk15ProgGuideDB/ataspectj.xml index 216418f31..4faa14548 100644 --- a/docs/adk15ProgGuideDB/ataspectj.xml +++ b/docs/adk15ProgGuideDB/ataspectj.xml @@ -690,7 +690,7 @@ }; // this implementation can be outside of the aspect - public class MoodyImpl implements Moody { + public static class MoodyImpl implements Moody { private Mood mood = Mood.HAPPY; public Mood getMood() { @@ -699,7 +699,7 @@ } // the field type must be the introduced interface. It can't be a class. - @DeclareParents(value="org.xzy..*",defaultImpl="MoodyImpl") + @DeclareParents(value="org.xzy..*",defaultImpl=MoodyImpl.class) private Moody implementedInterface; @Before("execution(* *.*(..)) && this(m)")