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

call method not used for possible closure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: