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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.2
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: