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

call method not used for possible closure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      in

      class Dummy {
          def call(Object arguments) {
              "1"
          }
      }
      
      def c = new Dummy()
       assert c(2) == "1"
      

      the assert is never visited because Groovy tries to call doCall instead of call. responsible for this is SBA#invokeClosure

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              blackdrag Jochen Theodorou
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: