google-code-export / crux-framework

Automatically exported from code.google.com/p/crux-framework
0 stars 0 forks source link

JClassUtils missing method to recover jmethod from interfaces #615

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This method is not enough:

    public static JMethod getMethod(JClassType clazz, String methodName, JType[] params)
    {
        JMethod method = null;
        JClassType superClass = clazz;
        while (method == null && superClass != null)
        {
            method = superClass.findMethod(methodName, params);
            superClass = superClass.getSuperclass();
        }
        return method;
    }

Original issue reported on code.google.com by samuel@cruxframework.org on 2 Mar 2015 at 9:46