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

Summary: Incorrect "Missing @throws tag for E"
Product: java Reporter: in-ws5
Component: JavadocAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:

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.