Hi Mark,

The docs only say (
http://www.eclipse.org/aspectj/doc/released/adk15notebook/generics-inAspectJ5.html
):

> 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.

That page of the doc also shows some examples of a hierarchy of
abstract generic aspects, although none of them alter the bounds in
the way your example does.  So the fact that your code won't compile
is a bug that needs fixing.

cheers,
Andy.

2008/5/11 Mark Stobbe <[EMAIL PROTECTED]>:
>
>
>
>
> Hello,
>
> First of all, I know this is not possible, as it says on the manual page..
> but I was wondering why..
> In plain Java you can redefine the upperbound of a type parameter, i.e.:
>
> class AbstractComponent<C extends Component> {}
> class AbstractWindow<W extends Window> extends AbstractComponent<W> {}
>
> Now.. trying the same thing with aspects.. does not work:
>
> abstract aspect AbstractComponentA<C extends Component> {}
> abstract aspect AbstractWindowA<W extends Window> extends
> AbstractComponentA<W> {}
>
> So.. my question, why isn't this supported? And what would be the "best"
> workaround?
>
> Thanks in advance,
> Mark
> _______________________________________________
>  aspectj-users mailing list
>  [email protected]
>  https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to