Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8265174

Update Class.getDeclaredMethods to discuss synthetic and bridge methods

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:

      Description

      The results from Class.getDeclaredMethods can include bridge and other synthetic methods, which can be unexpected by users. The javadoc for Class.getDeclaredMethods should be updated to explicitly mention this possibility.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: