Bug 155229 - Combining generics and pertypewithin() doesn't work
Summary: Combining generics and pertypewithin() doesn't work
Status: RESOLVED INVALID
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-25 10:28 EDT by Ramnivas Laddad CLA
Modified: 2006-08-30 07:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ramnivas Laddad CLA 2006-08-25 10:28:04 EDT
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"
Comment 1 Matthew Webster CLA 2006-08-30 07:44:37 EDT
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.