Groovy
  1. Groovy
  2. GROOVY-5033

Annotations on a method with optional parameters do not work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.8
    • Fix Version/s: 1.8.3, 1.9-beta-4
    • Component/s: Compiler
    • Labels:
      None

      Description

      I found this bug when using Springcache in a Grails project. I have a service method which flushes a cache.

      class MyService { 
          @CacheFlush('MyCache') 
          def update(paramA, paramB, paramC=null) { 
              ... 
          } 
      }
      

      When I call the update method with all three parameters, Springcache flushes the cache correctly. But when I call with only the first two parameters, Springcache will not flush the cache.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        20h 26m 1 Roshan Dawrani 22/Sep/11 01:57
        Resolved Resolved Closed Closed
        21d 22h 30m 1 Paul King 14/Oct/11 00:28
        Mark Thomas made changes -
        Workflow jira [ 12971485 ] Default workflow, editable Closed status [ 12979311 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12733958 ] Default workflow, editable Closed status [ 12745760 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Roshan Dawrani made changes -
        Fix Version/s 1.8.3 [ 17657 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.9-beta-4 [ 17656 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Roshan Dawrani added a comment -

        Should be fixed now.

        Show
        Roshan Dawrani added a comment - Should be fixed now.
        Roshan Dawrani made changes -
        Field Original Value New Value
        Assignee Roshan Dawrani [ roshandawrani ]
        Kenny Cheang created issue -

          People

          • Assignee:
            Roshan Dawrani
            Reporter:
            Kenny Cheang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development