Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-216

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2
    • None
    • None
    • Operating System: All
      Platform: All

    • 34351

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alban Alban Peignier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: