Sfoglia il codice sorgente

SEC-2146: Document AspectJ does not inherit annotations

Rob Winch 12 anni fa
parent
commit
7f2308f46c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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
                         with the <classname>AnnotationSecurityAspect</classname> from the
                         <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 xml:id="nsa-global-method-security-order">
                     <title><literal>order</literal></title>