Community
Participate
Working Groups
Trying to compile the second example (the one with generic aspect parameter) in http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/ajdk15notebook/pertypewithin.html results in the following compile-time error: "only abstract aspects can have type parameters"
I suspect this example pre-dates the complete implementation of AspectJ 5. The documentation (http://www.eclipse.org/aspectj/doc/released/adk15notebook/generics-inAspectJ5.html) now states: Generic Aspects AspectJ 5 allows an abstract aspect to be declared as a generic type. Any concrete aspect extending a generic abstract aspect must extend a parameterized version of the abstract aspect. Wildcards are not permitted in this parameterization. You will also notice the example you show had gone from the public version of the documentation http://www.eclipse.org/aspectj/doc/released/adk15notebook/pertypewithin.html.