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

ClassNode hasPossibleMethod and tryFindPossibleMethod make inefficient use of getMethods(String) and getSuperClass()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1, 3.0.5, 2.5.14
    • None
    • None

    Description

      ClassNode hasPossibleMethod and tryFindPossibleMethod iterate over the type and its super-types, calling getMethods(String), checking each method. Unlike getMethods(), getMethods(String) includes super class methods. getDeclaredMethods(String) is the name-filtered equivalent of getMethods().

      Attachments

        Activity

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h