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.
Created attachment 140770 [details] Project to use for reproduction. 1. Open attached project. 2. Open StageCoachMain.java and look at line 238 & 240. Notice errors. 3. Change line 239 to: checkBoxFullScreen.selectedProperty().addListener(new ChangeListener<Boolean>() { 4. Change line 240 to: public void changed(ObservableValue<? extends Boolean> ov, Boolean oldValue, Boolean newValue) { 5. Save file. No errors. 7. Undo changes (Ctrl+Z). Save file. Errors return. 8. Use local history (or use redo Ctrl+Y two times) to revert file back to state of no errors. 9. Do not save file and close it, discarding changes. 10. Open the file again. Results: There are error badges on document tab and in Project Window nodes, but none in file. Close project and reopen it and same problem exsists. Workaround: Restart NetBeans. Product Version: NetBeans IDE 7.4 RC2 (Build 201309252201) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) And Product Version: NetBeans IDE Dev (Build 201310020002) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Reproduced in: Product Version: NetBeans IDE 8.0 Beta (Build 201401091443) Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b63 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b121 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
I've noticed similar phenomena in NetBean 8.0 the last few days while refactoring and changing code in the editor: error markers on the class in the project tree and document tab, but not in the file. When the IDE was suffering from this problem I could simply change a method parameter name textually and the usages of the parameter in the method body would not be marked as incorrect. Restarting the IDE fixes the problem. However, so far I don't have a clear reproduction scenario so I did not yet submit a bug.
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
Verified fixed in: Product Version: NetBeans IDE Dev (Build 201607220002) Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14 System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)