osglworks / java-tool

Some simple common Java utilities
Apache License 2.0
52 stars 18 forks source link

建议增强osgl#getMethod()的实现 #200

Open moonmanbu opened 5 years ago

moonmanbu commented 5 years ago

当前实现为

    public static Method getMethod(Class c, String methodName, Class... argTypes) {
        try {
            return c.getMethod(methodName, argTypes);
        } catch (NoSuchMethodException e) {
            return null;
        }
    }

直接调用的Class#getMethod()方法, 不能获取object的所有Method, 建议按照fosgl#fieldsOf()的实现方法重新实现