title: how to crosscut a method from parent class?
body: <p>Parent class:</p>
  
  <pre><code>public class Animal {
    public String name() {
      return "my name";
    }
  }
  </code></pre>
  
  <p>Child class:</p>
  
  <pre><code>public class Dog extends Animal {
    // no methods
  }
  </code></pre>
  
  <p>I'm trying to crosscut a call to <code>Dog.name()</code> with AspectJ, but doesn't work:</p>
  
  <pre><code>@Aspect
  public class Crosscut {
    @Around("execution(* Dog.name())")
    public Object exec(ProceedingJoinPoint point) {
      // this point is never reached
    }
  }
  </code></pre>
  
  <p>However, if I add a child method to the <code>Dog</code> class, the crosscut works:</p>
  
  <pre><code>public class Dog extends Animal {
    public String name() {
      return super.name();
    }
  }
  </code></pre>
  
  <p>How to write the right crosscut? Or it's not possible at all?</p>