Browse Source

SEC-2146: Document AspectJ does not inherit annotations

Rob Winch 12 years ago
parent
commit
7f2308f46c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      docs/manual/src/docbook/appendix-namespace.xml

+ 4 - 0
docs/manual/src/docbook/appendix-namespace.xml

@@ -1787,6 +1787,10 @@ where
                         should be used instead of the default Spring AOP. Secured methods must be woven
                         should be used instead of the default Spring AOP. Secured methods must be woven
                         with the <classname>AnnotationSecurityAspect</classname> from the
                         with the <classname>AnnotationSecurityAspect</classname> from the
                         <literal>spring-security-aspects</literal> module. </para>
                         <literal>spring-security-aspects</literal> module. </para>
+                    <para>It is important to note that AspectJ follows Java's rule that annotations on
+                        interfaces are not inherited. This means that methods that define the Security annotaitons
+                        on the interface will not be secured. Instead, you must place the Security annotation
+                        on the class when using AspectJ.</para>
                 </section>
                 </section>
                 <section xml:id="nsa-global-method-security-order">
                 <section xml:id="nsa-global-method-security-order">
                     <title><literal>order</literal></title>
                     <title><literal>order</literal></title>