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.
Example: public abstract class Example<X extends Exception> { public abstract void foo() throws X, java.io.IOException; public void example() { try { foo(); } catch (Exception ex) { // do something } } } The hint "Can be replaced with multicatch or several catch clauses catching specific exceptions" is incorrectly shown. It is incorrect because it is not possible to write a catch clause for X, as it is a type parameter rather than a class.
Fixed in jet-main#875484e483a1
Integrated into 'main-silver', will be available in build *201604300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/875484e483a1 User: Svata Dedic <sdedic@netbeans.org> Log: #258428: type-parametrized exceptions replaced by their upper bounds