You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/07/23 14:17:05 UTC

[jira] [Closed] (GROOVY-9634) ClassNode hasPossibleMethod and tryFindPossibleMethod make inefficient use of getMethods(String) and getSuperClass()

     [ https://issues.apache.org/jira/browse/GROOVY-9634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-9634.
-----------------------------

> ClassNode hasPossibleMethod and tryFindPossibleMethod make inefficient use of getMethods(String) and getSuperClass()
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-9634
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9634
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 4.0.0-alpha-1, 3.0.5
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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()}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)