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 - [65cat] Java editor top component not in sync with delete/restore file operations
Summary: [65cat] Java editor top component not in sync with delete/restore file operat...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2008-08-14 02:36 UTC by karmagfa
Modified: 2009-08-07 11:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
first problem (55.29 KB, image/png)
2008-08-14 02:36 UTC, karmagfa
Details
second problem (55.49 KB, image/png)
2008-08-14 02:37 UTC, karmagfa
Details

Note You need to log in before you can comment on or make changes to this bug.
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).