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.
NB 6.1 We are displaying hints for code in Guarder Sections - after applying suggestion -> error message is shown in Editor status bar - it would be better to hide hints for code in guarded sections at all.
Yes, we should not. Users can't influence this code, so we should not bother them with warnings.
Using current infrastructure, this is not an easy decision -- there are some types of hints, ie. introduce field, which make sense and work properly even when invoked from inside guarded block, and some users/developers using hints API will be unpleasantly surprised when this will stop working. In the time of the hint creation, the area which is affected (place in source, where changes will be made) is not yet decided, so it's currently impossible to suppress just hints which usage will result in the status bar message. Lets plan to review/redesign the infrastructure LATER.
NetBeans.org Migration: changing resolution from LATER to WONTFIX
v/c