Announcement Announcement Module
Collapse
No announcement yet.
pointcut expression for non final field access Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • pointcut expression for non final field access

    I'm currently playing with a ConcurrencyDetectionAspect and I would like to create a pointcut expression for reads/writes on non final fields on a specific package (and all subpackages).

    This doesn't work:

    get(* !final org.apache.catalina..*)||set(* !final org.apache.catalina..*)

    but this does:

    get(* org.apache.catalina..*)||set(* org.apache.catalina..*)

    So something is wrong with the !final part.

    Is anybody able to solve this problem?
    Last edited by Alarmnummer; Mar 25th, 2008, 05:11 PM.

  • #2
    Try:

    get(!final * org.apache.catalina..*)||set(!final * org.apache.catalina..*)

    -Ramnivas

    Comment


    • #3
      Thanks, it works.

      Comment

      Working...
      X