Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Question about Generic Aspects

The inter-type declarations refered to in that paragraph are
inter-type method, field, and constructor declarations. The declare
family are exempt from this restriction :)

On 09/09/05, David Pearce <david.pearce@xxxxxxxxxxxxx> wrote:
> Hi all,
> 
> I have been reading the Aspectj 1.5 note book and have a question about
> generic aspects, which I'm hoping someone can help me with.  The
> documentation says:
> 
> "The type parameter variables from a generic aspect declaration may be
> used in place of a type within any member of the aspect, except for
> within inter-type declarations."
> 
> But, it seems that the example goes on to do just this. Namely:
> 
>  > public abstract aspect ParentChildRelationship<Parent,Child> {
>  > ...
>  >  declare parents: Parent implements ParentHasChildren<Child>;
>  > ...
>  > }
> 
> So, I'm wondering whether I just missed something or, if not, which way
> around it should be.
> 
> Thanks,
> 
> David J. Pearce
> 
> --
> Lecturer in Computer Science,
> School of Mathematics, Statistics and Computer Science,
> Victoria University of Wellington,
> PO Box 600,
> Wellington,
> New Zealand.
> 
> Office: Cotton 231
> Telephone: +64 4 463 5833
> URL: http://www.mcs.vuw.ac.nz/~djp
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 


-- 
-- Adrian
adrian.colyer@xxxxxxxxx


Back to the top