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.
[ JDK VERSION : 1.7.7 ] Examine the screenshot's, the original code is in Static1 and as you can see the is the keyword "static" on line 16 and a hint about uncaught exceptions on line 20. When you use this hint it will remove the "static" from line 16 (as you can see there is no "static" on line 18.
Created attachment 125933 [details] Before using hint
Created attachment 125934 [details] After work
Integrated into 'main-golden', will be available in build *201210260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e342e14c1aa3 User: Jan Lahoda <jlahoda@netbeans.org> Log: #220064: must copy the block's static flag on surround with try-catch fix.
http://hg.netbeans.org/main-silver/rev/e342e14c1aa3
Verified 121130