QDox
  1. QDox
  2. QDOX-121

JavaDocBuilder.createBinary only considers public methods and fields

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8
    • Component/s: None
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      The JavaDocBuilder.createBinary method is used to create JavaClass instances of classes from the class path for which no source code is available. This method uses the Class.getMethods() and Class.getFields() methods to get the methods and fields of the class. These methods are specified to return only the public methods and fields of the class and its super classes.

      Instead of using the getMethods() and getFields() methods the Class.getDeclaredMethods() and Class.getDeclaredFields() methods, resp. These methods return all methods and fields of the class itself excluding any super class.

      The net benefit is we get all methods and fields and do not have to distinguish between the class's members and any inherited member.

      Attached patch has been created against trunk from the toplevel directory. Permission is of course granted to use the patch.

        Activity

        Hide
        Paul Hammant added a comment -

        Fixed in another unknown change.

        Show
        Paul Hammant added a comment - Fixed in another unknown change.
        Paul Hammant made changes -
        Field Original Value New Value
        Assignee Paul Hammant [ paul ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.8 [ 14826 ]

          People

          • Assignee:
            Paul Hammant
            Reporter:
            Felix Meschberger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: