title: AspectJ with Akka systems
body: <p>Just for reference, this question continues with question named : <a href="https://stackoverflow.com/questions/67402027/error-when-working-with-aspectj-and-scala">Error when working with AspectJ and Scala</a></p>
  <p>I am trying to use AspectJ with Scala, specifically working with Akka actor systems.</p>
  <p>I have been producing a pointcut of this type :</p>
  <pre><code>@Around(&quot;\&quot;execution (* akka.actor.ActorRef.!(..)) \&quot; + \&quot;&amp;&amp; args(message, sender)\&quot;, argNames = \&quot;(message, sender)\&quot;)&quot;)
    def printSample() {
      println(&quot;receive message &quot;)
    }
  </code></pre>
  <p>However an error crops up saying :</p>
  <pre><code>Invalid pointcut '&quot;execution (* akka.actor.ActorRef.!(..)) &quot; + &quot;&amp;&amp; args(message, sender)&quot;, argNames = &quot;(message, sender)&quot;)': org.aspectj.weaver.
  patterns.ParserException: identifier at position 0
  [error] org.aspectj.bridge.AbortException: AspectJ failed
  </code></pre>