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 131870 - "Add throws clause" hint doesn't consider type arguments
Summary: "Add throws clause" hint doesn't consider type arguments
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 20:33 UTC by matthies
Modified: 2008-08-21 15:50 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 matthies 2008-04-02 20:33:59 UTC
Example:

    interface Foo<E extends Exception> { void f() throws E; }

    class FooImpl implements Foo<InstantiationException>
    {
        public void f()
        {
            throw new InstantiationException();
        }
    }

The "unreported exception" light bulb only proposes "Surround with ... try-catch", but not "Add throws clause ...".


Product Version: NetBeans IDE 6.1 Beta (Build 200803050202)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 2 Quality Engineering 2008-05-06 16:11:08 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #179 build
Changeset: http://hg.netbeans.org/main/rev/7f798996d86d
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #131870: correct handling of generified exception in Add Throws hint.
Comment 3 matthies 2008-08-21 15:50:58 UTC
Verified in 6.5 Beta.