Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4070

JavaDoc in tooltip (ctrl+mouse hover) duplicates the description of parameters of a method when the method overrides the parent method

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:
      1) Create a class that extends AbstractList
      2) Override the addAll method and add Javadoc like this:

      public class ListImpl<E> extends AbstractList<E> {    /**
           * Description. 0. ListImpl.
           *
           * @return <br>  1. ListImpl.
           *
           * @param index  2. ListImpl.
           *
           * @throws {@inheritDoc}
           */
          @Override
          public boolean addAll(int index,
                  Collection<? extends E> c) throws ClassCastException,IndexOutOfBoundsException {
              return true;
          }    @Override
          public E get(int index) {
              throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
          }    @Override
          public int size() {
              throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
          }}
      
      

       

       

      The ToolTip shows this (see the first attachment):

       

       

      but should show this (see the second attachment):

       

       

      If a parameter has a Javadoc description in the local method Javadoc should use it. If a parameter doesn't have a local description Javadoc should use description inherited from the parent.

      Attachments

        1. 2020-03-25_22-13-22.png
          8 kB
          Dmitry.Mochalov
        2. 2020-03-25_22-11-32.png
          12 kB
          Dmitry.Mochalov

        Issue Links

          Activity

            People

              Dmitry.Mochalov Dmitry.Mochalov
              Dmitry.Mochalov Dmitry.Mochalov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m