[
https://issues.apache.org/jira/browse/NETBEANS-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry.Mochalov resolved NETBEANS-4070.
---------------------------------------
Fix Version/s: 12.0
Resolution: Fixed
Tested, fixed in 12.0
> 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
> Fix For: 12.0
>
> Attachments: 2020-03-25_22-11-32.png, 2020-03-25_22-13-22.png
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists