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.

Bug 131207

Summary: Standard Javac Warnings are not repainted in the editor
Product: java Reporter: Petr Dvorak <joshis>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Dvorak 2008-03-26 16:42:56 UTC
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.
Comment 1 Jiri Prox 2008-03-27 09:21:15 UTC
The first part of this issue - hints are not refreshed after change in options is duplicate of issue 119868
Comment 2 Vitezslav Stejskal 2008-03-27 14:30:55 UTC
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.
Comment 3 Jan Lahoda 2008-03-27 22:08:24 UTC
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.
Comment 4 Jan Becicka 2008-11-12 08:55:22 UTC
P4 imo
Comment 5 Martin Balin 2016-07-07 07:18:53 UTC
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