Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5033

Annotations on a method with optional parameters do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.8
    • 1.8.3, 1.9-beta-4
    • Compiler
    • 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.

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            kcheang Kenny Cheang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: