]> source.dussan.org Git - aspectj.git/commitdiff
fix section on annotation inheritance matching
authoracolyer <acolyer>
Tue, 13 Dec 2005 22:17:13 +0000 (22:17 +0000)
committeracolyer <acolyer>
Tue, 13 Dec 2005 22:17:13 +0000 (22:17 +0000)
docs/adk15ProgGuideDB/annotations.xml

index a49da8dddaf66caefcfe91c9c9aaad81672150e5..f0eb7de7dcd14dec75cb3bdc6ce8ad8412d5d23d 100644 (file)
        </para>
        
        <para>
-           The pointcut <literal>c1MethodCall</literal> matches both 
-           <literal>c1.aMethod()</literal> and <literal>c2.aMethod()</literal>. The call
-           to <literal>c2.aMethod</literal> is matched because the call join point has
-           multiple signatures (<literal>@SomeAnnotation C1.aMethod()</literal> and
-           <literal>C2.aMethod()</literal>), and the former of those signatures is
-           exactly matched by the pattern.
+           The pointcut <literal>annotatedMethodCall</literal> matches  
+           <literal>c1.aMethod()</literal> but not <literal>c2.aMethod()</literal>. The call
+           to <literal>c2.aMethod</literal> is not matched because join point matching for
+           modifiers (the visibility modifiers, annotations, and throws clause) is based on
+           the subject of the join point (the method actually being called).
        </para>
        
   </sect2>