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.
[ BUILD # : 200710071200 ] [ JDK VERSION : 1.6.0_03 ] Example: static { FileInputStream fis = new FileInputStream(new File(".")); } public static void test() { FileInputStream fis = new FileInputStream(new File(".")); } In case of the method test(), the hint offers throws clause and surround with try-catch. In case of the static initializer, no hint is offered, but surround with try-catch must be offered.
Reproducible.
Resolving all issues with milestone "future" as LATER. If you feel strongly that it should be implemented please reopen and set the target milestone to "next".
NetBeans.org Migration: changing resolution from LATER to WONTFIX