• Post Reply Bookmark Topic Watch Topic
  • New Topic

Annotations and inheritance  RSS feed

Stefan Krause
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to do some annotation processing. The simplified background is that all methods of an object annotated with a fitting EventListener-Annotations should be called from one of my frameworks classes.
It's easy enough to get all declared methods, check for the annotation and eventually pick the fitting methods.
The problem starts with inheritance. Annotations by itself are not inherited, but most frameworks allow some inheritance. But it seems pretty hard to get that right.

Does anyone have any pointers to good annotation processing libs that have some inheritance semantic and respect the JDK 5 oddities (e.g. bridge methods)?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!