Just to mention a possibly existing bug in this area to do with
annotation inheritance:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=128664
Andy
2009/8/12 Simone Gianni <simoneg@xxxxxxxxxx <mailto:simoneg@xxxxxxxxxx>>
Hi All,
I have a problem. I add some methods to beans annotated with
@Entity. Some @Entity extends other @Entity, with the result that
methods are added to both types. I added a check to avoid adding
them if they are already there (using !hasmethod(...)), but it
works or does not work depending on the class loading sequence
(which is IMHO a bug I'll write another mail about).
Anyway, it could be easy to solve writing "Apply this to @Entity
beans that does not subclass another @Entity bean", I tried
writing "(@Entity *) && !((@Entity *)+)", but it does not work
obviously. I also tried an if on thisJoinPointStaticPart, but it
is not usable there.
Is there a way to do it? Is there an "exclusive +" that matches
subclasses but not also the base class? While it is handy to write
execution(MyClass+ .....) to match both class and subclass, and
while there is a way to select all subclasses when the class name
is known, I can't find a way to do it with annotations.
Simone
--
Simone Gianni CEO Semeru s.r.l. Apache Committer
http://www.simonegianni.it/
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx <mailto:aspectj-users@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
------------------------------------------------------------------------
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users