[ 
https://issues.apache.org/jira/browse/NETBEANS-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated NETBEANS-4070:
-------------------------------------
    Labels: pull-request-available  (was: )

> JavaDoc in tooltip (ctrl+mouse hover) duplicates the description of 
> parameters of a method when the method overrides the parent method
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-4070
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4070
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Javadoc
>    Affects Versions: 11.0, 11.2, 11.3
>            Reporter: Dmitry.Mochalov
>            Assignee: Dmitry.Mochalov
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: 2020-03-25_22-11-32.png, 2020-03-25_22-13-22.png
>
>
> Steps to reproduce:
>  1) Create a class that extends AbstractList
>  2) Override the addAll method and add Javadoc like this:
> {code:java}
> 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.
>     }}
> {code}
>  
>  
> The ToolTip shows this (see the first attachment):
>   !2020-03-25_22-11-32.png!
>  
> but should show this (see the second attachment):
>   !2020-03-25_22-13-22.png!
>  
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to