[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Question about Generic Aspects
|
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