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

Michael Bien closed NETBEANS-1615.
----------------------------------
    Fix Version/s: 17
       Resolution: Fixed

pr got merged

> Code hint "Add @throws tag" for generic exception in Java shows up even if 
> already present
> ------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-1615
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1615
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Hints & Annotations, java - Hints, java - 
> Javadoc
>         Environment: Windows 10 version 10.0 running on amd64; Cp1252; nl_NL 
> (nb)
>            Reporter: Maurits de Jong
>            Priority: Minor
>              Labels: pull-request-available, usability
>             Fix For: 17
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> The code hint "Add @throws tag" for a generic exception shows up, even if I 
> already added the tag.
>  The following code reproduces the problem:
> {code:java}
> /**
>  * Some method.
>  *
>  * @param <X>
>  * @throws X Some throwable.
>  */
> public static <X extends Exception> void someMethod() throws X { }{code}
> The hint appears at the line with the method declaration. The JavaDoc 
> `throws` tag is already defined, and yet the hint appears or doesn't go away. 
> If I click on the hint entry in order to apply it, another `throws` tag isĀ 
> inserted, leaving the following code:
> {code:java}
> /**
>  * Some method.
>  *
>  * @param <X>
>  * @throws X
>  * @throws X Some throwable.
>  */
> public static <X extends Exception> void someMethod() throws X { }{code}
> Still, the hint is visible.
> Obviously, the expected behaviour is that the hint is not visible if the 
> `throws` tag exists for this particular generic exception type.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
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