title: @AspectJ pointcut for subclasses of a class with an annotation
body: <p>I'm looking for a pointcut that matches method executions in classes that subclass a class with a specific annotation. The excellent <a href="http://blog.espenberntsen.net/2010/03/20/aspectj-cheat-sheet/" rel="noreferrer">AspectJ cheat sheet</a> helped me to create the following pointcut:</p>
  
  <pre><code>within(@my.own.annotations.AnnotationToMatch *) &amp;&amp; execution(* *(..))
  </code></pre>
  
  <p>This matches all method calls of a class A that carries the @AnnotationToMatch, but not method of a class B that extends A. How can I match both?</p>