[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] @DeclareParents
|
- From: Adrian Colyer <adrian.colyer@xxxxxxxxx>
- Date: Thu, 22 Dec 2005 10:11:58 +0000
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I69mBmV8UhprOKhv5p2g9MXpjKw/X44eh2CZATL/3upGQwKUnkQYdAYp2AAnr+45ss1so4Y1dpHvQ+GRUrvzLLUU0lQ+DoCV04XA55HVJpsUTAxQMldml1YbcxY0CYphl2Zy86QFqik5SlBkY1gFTqJm1bvaPKq69HEcRV6GgiE=
I've now fixed the docs in CVS and in the online version.
On 22/12/05, Alexandre Vasseur <avasseur@xxxxxxxxx> wrote:
> Hi Brian
>
> I have spotted a little typo in the doc indeed.
>
> First the syntax is
> @DeclareParents(value=".....", defaultImpl=Some.class)
> that is reference the class object itself, not the fully qualified name there.
>
> Also, the static inner class must be static and public so that the
> implicit no-arg constructor is public.
>
> Alex
>
>
>
> On 12/22/05, Brian Ericson <bme@xxxxxxxx> wrote:
> > The syntax for @DeclareParents changed slightly in the AspectJ 5
> > release. I can't get the example to compile... The first two hurdles
> > are minor:
> > o 'defaultImpl="MoodyImpl"' should be 'defaultImpl=MoodyImpl.class'
> > o 'void feelingMoody(Moody m) {' should be 'public void
> > feelingMoody(Moody m) {'
> >
> > However, having made the changes, the compilation fails because
> > 'defaultImpl="MoodIndicator$MoodyImpl" has no public no-arg
> > constructor'. I've tried a number of things, but can't get beyond this...
> >
> > Ideas?
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
--
-- Adrian
adrian.colyer@xxxxxxxxx