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.
The multicatch hint should not be proposed when it involves subclasses. eg: try { ... } catch (UnknownHostException ex) { System.err.println("test"); } catch (IOException ex) { System.err.println("test"); } This is with: Product Version: NetBeans IDE Dev (Build 201108030600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows 7 version 6.1 running on x86; Cp1252; fr_FR (nb)
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/cbe54cf6288b User: Jan Lahoda <jlahoda@netbeans.org> Log: #200707: prevent generating multicatch for exception classes that have subtype-supertype relation.
Fixed by the above commit. Thanks for the report.
verified Product Version: NetBeans IDE Dev (Build 201108111304) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) User directory: C:\Users\jprox\.netbeans\dev Cache directory: C:\Users\jprox\.netbeans\dev\var\cache
http://hg.netbeans.org/releases/rev/cb84f9858e65
verified in 7.0.1-patch1