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

Type Checking Extensions cannot handle operator methods

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: Static Type Checker
    • Labels:
      None

      Description

      The event 'methodNotFound' of a type checker extension script does not get called at all for methods to which operators are turned, like e.g.,

      ...[Static type checking] - Cannot find matching method java.lang.Object#leftShift(int)....
      @ line 9, column 9.
      bar<<1
      ^

      If the source contains explicit "bar.leftShift 1", it works properly.

      Either a specific event for operators should be added, or the 'methodNotFound' event should be called for these methods as well. Personally, I think the latter solution is better, but as always, might be overlooking something of importance.

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              oc OC
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: