title: AspectJ: parameter in a pointcut
body: <p>I'm using AspectJ to advice all the public methods which do have an argument of a chosen class. I tried the following:</p>
  
  <pre><code>pointcut permissionCheckMethods(Session sess) : 
      (execution(public * *(.., Session)) &amp;&amp; args(*, sess));
  </code></pre>
  
  <p>This is working wonderfully for methods with at least 2 arguments:</p>
  
  <pre><code>public void delete(Object item, Session currentSession);
  </code></pre>
  
  <p>but it does not work with methods like:</p>
  
  <pre><code>public List listAll(Session currentSession);
  </code></pre>
  
  <p>How may I change my pointcut to advice both methods executions? In other words: I expected the ".." wildcard to represent "zero or more arguments", but it looks like it means instead "one or more"...</p>