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

stddoclet: In summary tables, members with same name are not sorted properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.2.0
    • tools

      In member summary tables, members with the same name but different arguments are not sorted in the right order. For example, the 5 "add" methods in Container
      currently sort as follows:

       add(Component comp, int index)
       add(Component comp, Object constraints, int index)
       add(Component comp, Object constraints)
       add(Component comp)
       add(String name, Component comp)

      I believe they are in this order because the character comma "," sorts
      ahead of a parenthesis ")", which produces the wrong logical order.

      They should be sorted as follows, where a method with a single argument
      sorts ahead of another method with the same name and first argument but
      has more arguments. This order tends to sort them from simple to complex,
      which makes them easier to understand:

       add(Component comp)
       add(Component comp, int index)
       add(Component comp, Object constraints)
       add(Component comp, Object constraints, int index)
       add(String name, Component comp)

      Notice this is exactly the same problem we had and *fixed* with sorting members in the index, so perhaps we can re-use the same solution here.

      Notice this problem needs to be fixed for both method and constructor summary tables.

            bpatel Bhavesh Patel (Inactive)
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: