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 236715 - Errors do not show in source file after local history or Redo changes.
Summary: Errors do not show in source file after local history or Redo changes.
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-03 17:43 UTC by MackSix
Modified: 2016-07-23 06:52 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to use for reproduction. (67.02 KB, application/x-zip-compressed)
2013-10-03 17:43 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-10-03 17:43:43 UTC
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)
Comment 1 MackSix 2014-01-13 02:08:12 UTC
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)
Comment 2 klr8 2014-06-30 13:35:53 UTC
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.
Comment 3 Martin Balin 2016-07-07 07:18:28 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
Comment 4 MackSix 2016-07-23 06:52:57 UTC
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)