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.
Product Version: NetBeans IDE Dev (Build 200803251204) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) [Use project from http://wiki.netbeans.org/TS_60_Hints to test.] 1: Enable "Standard Javac Warnings" in Tools>Options>Java Code>Hints. 2: Open the project and then the file Standard.java from the "standard" source package -> You see a bunch of hints. 3: Disable the "Standard Javac Warnings" from the Options dialog again. -> Hints are still there - you need to reopen the file (for example) to make them disappear. 4: Re-enable the "Standard Javac Warnings" again and reopen the file again so that you see the warnings again. 5: Go to line 21 (String a = ...) and invoke the hint menu (Alt+Enter). 6: Confirm the Hint offering you to remove the redundant cast. -> The line is not underlined anymore as the problem was resolved. 7: Press Ctrl+Z to undo the opperation. -> The line remains at the same state - it is not underlined, the hint menu cannot be invoked.
The first part of this issue - hints are not refreshed after change in options is duplicate of issue 119868
I'm not sure how much this is a problem in the hints infra and how much in java hints, so please pass it back if it's in the infra. Otherwise it is reproducible in a dev build.
Seems to be related to the "incremental" reparse - the warnings do not appear in CompilationInfo.getDiagnostics() (can be seen in Errors tab in the Navigator). After a change outside the current method, the warning appears. To reproduce, it is not necessary go through all the steps, follow steps 1, 2, 5, 6, 7.
P4 imo
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss