Commons Lang
  1. Commons Lang
  2. LANG-216

[lang] [patch] Provides a Class.getPublicMethod which returns public invocable Method

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Due to a bug into the JDK reflection API, no public classes can be difficult to
      invoke by reflecting. See the related bug:
      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4071957

      The workaround consists to find the right Method declaration into the interfaces
      and superclasses.

      A ClassUtils.getPublicMethod(Class cls, String methodName, Class
      parameterTypes[]) can provide this small search.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Alban Peignier
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development