Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
Windows 10 version 10.0 running on amd64; Cp1252; nl_NL (nb)
Description
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:
/** * Some method. * * @param <X> * @throws X Some throwable. */ public static <X extends Exception> void someMethod() throws X { }
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:
/** * Some method. * * @param <X> * @throws X * @throws X Some throwable. */ public static <X extends Exception> void someMethod() throws X { }
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.
Attachments
Issue Links
- links to