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.
Converting a Java 5 codebase to Java 7, I started using the "replace with multicatch" hint. I would like to request that hint to support ReflectiveOperationException. Instead of converting multiple catch statements to something like: catch ( ClassNotFoundException | InstantiationException | IllegalAccessException e ) the hint should generate just one catch statement like: catch ( ReflectiveOperationException e ) Maybe that better be a new hint. So that instead of just the "replace with multicatch" hint two hints are provided "replace with multicatch" and "replace with catch ReflectiveOperationException".
Interesting enhancement. Should be configurable, though - an automatic heuristic is used to guess the "appropriate" common supertype to catch may produce very funny results.