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

@Memoized failed to apply for method with variable args

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.9, 2.4.0-rc-1
    • None
    • None

    Description

      import groovy.transform.Memoized
      
      class Test{
          @Memoized
          String some(Integer inp, ...params){
              sleep(3000)
          }
      }
      
      1 compilation error:
      
      Invalid field name. Invalid character at position: 40 of value:  ; in name: memoizedMethodClosure$someIntegerObject;
      . At [-1:-1]  at line: -1, column: -1
      

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            hubbitus Pavel Alexeev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: