Announcement Announcement Module
Collapse
No announcement yet.
Upgrading to Spring 2.0.1 changed application of pointcut Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Upgrading to Spring 2.0.1 changed application of pointcut

    After I upgraded to Spring 2.0.1, a pointcut that I had defined and working in Spring 2.0 changed behavior. I had the following pointcut:

    <pointcut id="checkLoggedInPointcut" expression="execution(public * com.mycompany.MyBaseClass+.*(..)) AND !execution(public * com.mycompany.ClassThatExtendsBaseClass.*(..))"/>

    An aspect that uses this pointcut is applied to all methods of all classes that extend MyBaseClass and should exclude all methods in only the single class ClassThatExtendsBaseClass.

    This was working fine in Spring 2.0. Do I need to change the way I have defined my pointcut to get it to work in Spring 2.0.1? (I upgraded to Spring 2.0.1 to get some additional ehcache enhancements).

    Thanks,
    Anthony

  • #2
    What's the new behavior in 2.0.1 you see?

    -Ramnivas

    Comment


    • #3
      The new behavior is that the checkLoggedInPointcut pointcut is applied to the class ClassThatExtendsBaseClass when it should not be. Sorry, I should have mentioned that.

      Thanks,
      Anthony

      Comment

      Working...
      X