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 143849

Summary: [65cat] Java editor top component not in sync with delete/restore file operations
Product: java Reporter: karmagfa <karmagfa>
Component: EditorAssignee: Max Sauer <msauer>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 121950    
Attachments: first problem
second problem

Description karmagfa 2008-08-14 02:36:17 UTC
[ BUILD # : 6.5 Beta ]
[ JDK VERSION : 1.6.0_05 ]

1) In a new Java Application project, create a class FooBar and use
it in the class Main.

2) Open a java editor on the Main.java file.

3) Delete the file Foobar.java

See the first problem: nothing is red-underlined in the view of the
Main.java file. (see screenshot 1)

4) Close the Main.java editor tab.

5) Reopen it, you will normally see the errors as underlined stuffs.

6) Restore your Foobar.java file to where it was before.

Second problem: the underlined stuffs stay there. (see screenshot 2)
Comment 1 karmagfa 2008-08-14 02:36:58 UTC
Created attachment 67337 [details]
first problem
Comment 2 karmagfa 2008-08-14 02:37:19 UTC
Created attachment 67338 [details]
second problem
Comment 3 Jiri Prox 2008-08-14 10:49:26 UTC
reproducible, the error is not highlighted until the file is modified or reopened
Comment 4 Jan Becicka 2008-09-24 15:31:14 UTC
Is it easy to fix, Honzo?
Comment 5 Dusan Balek 2009-08-07 11:58:25 UTC
Fixed in the current dev build. Error underlining is updated whenever editor gets focus (there is no need for reopening
it anymore).