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

Call site caching bug prevents NumberNumber* call sites from going fast path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.2
    • None
    • None

    Description

      In every NumberNumber call site class, there's a call check which always return false:

      if (checkCall(receiver)) {
                          return ((Integer) receiver).doubleValue() + ((Float) arg).doubleValue();
                      }
      

      which should be:

      if (checkCall(receiver, arg)) {
                          return ((Integer) receiver).doubleValue() + ((Float) arg).doubleValue();
                      }
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: