]> source.dussan.org Git - aspectj.git/commitdiff
fix for Bugzilla Bug 61569
authoracolyer <acolyer>
Wed, 4 Aug 2004 16:06:44 +0000 (16:06 +0000)
committeracolyer <acolyer>
Wed, 4 Aug 2004 16:06:44 +0000 (16:06 +0000)
  if-pointcuts with side-effects

docs/progGuideDB/semantics.xml

index 650cc734557792a87d9a623d98e8c3f9787111a8..3c02329f04b8f2287bb1d2723d494d216c400e90 100644 (file)
   if(thisJoinPoint.getKind().equals("call"))
 </programlisting>
 
+           <para>
+               Note that the order of evaluation for pointcut expression 
+               components at a join point is undefined. Writing <literal>if</literal> 
+               pointcuts that have side-effects is considered bad style and may also 
+               lead to potentially confusing or even changing behavior with regard 
+               to when or if the test code will run.
+           </para>
       </sect3>
     </sect2>