This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255632 - Incorrect "Missing @throws tag for E"
Summary: Incorrect "Missing @throws tag for E"
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-30 12:55 UTC by in-ws5
Modified: 2015-09-30 14:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description in-ws5 2015-09-30 12:55:44 UTC
The following 2 code situations each cause the editor to incorrectly give the hint "Missing @throws tag for E"

Situation A

public class A {

    /**
     *
     * @param <E>
     * @throws E
     */
    public <E extends Exception> void method() throws E {

    }
}

Situation B

public class B<E extends Exception> {

    /**
     *
     * @throws E
     */
    public void method() throws E {

    }
}

As you can see, it clearly isn't missing. 

Clicking the hint to add a throws tag results in a duplicate entry in the javadoc.