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 29952 - Java parse annotations not shown until close/open
Summary: Java parse annotations not shown until close/open
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-10 17:34 UTC by gthb
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gthb 2003-01-10 17:34:26 UTC
This is in version 3.4.1 RC2 (there is no 3.4.1 dev version
defined in IssueZilla, why is that?)

When editing Java code, errors are not annotated as I type,
even if I pause for a while, or even save. The explorer
node and the editor tab for the file both correctly display
the red 'x' annotation whenever errors are present in the
file, but in the code, the error highlighting is not shown.

When I close the editor tab and open the file again, the
code errors ARE annotated. If I edit within an annotation
the annotation is removed (correctly), but when I undo the
edit, reinstating the error, the annotation does not come
back, despite my pausing, saving, and attempting
"Tools -> Synchronize". It only comes back when I close and
open (disturbingly similar to the Windows just-reboot-it
syndrome :)

I am pretty sure annotations were redone on-the-fly in
previous Netbeans versions, so this seems like a regression;
in any case it is certainly a usability flaw. And since it
clearly is detected that there are errors in the code, one
would think it wouldn't be much more expensive to update
annotations in the code to show those errors -- so this
presumably is not the intended behavior. But if this IS
the intended behavior, is there any documentation (or list
discussion) behind that?
Comment 1 gthb 2003-01-10 19:13:21 UTC
... and likewise, when I fix annotated errors and save,
the error annotations are not removed. They are removed
only when I close and open again.
Comment 2 gthb 2003-01-20 16:05:13 UTC
This behavior is not exhibited consistently: I am now
editing another source file and the annotations are
updated on-the-fly as I'm used to. I don't know what
the difference could be; I don't remember where I was
editing before, when I experienced the above problems
(sorry!).
Comment 3 Tomas Hurka 2003-01-21 16:20:16 UTC
You are right that annotations is redone on-the-fly ( depending on the  Automatic Parser Delay which is 2 seconds by default). Closing as works-for-me. If you know how to reproduce it, please reopen this issue and add steps how to reproduce it. Thanks.
Comment 4 gthb 2003-07-08 16:43:32 UTC
Could not reproduce just now, in Tegal.
Comment 5 Quality Engineering 2007-09-20 11:55:41 UTC
Reorganization of java component