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 140340

Summary: All annotations moved to end of file
Product: editor Reporter: avp <avp>
Component: Hints & AnnotationsAssignee: Max Sauer <msauer>
Status: RESOLVED WONTFIX    
Severity: blocker CC: gorrus
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description avp 2008-07-16 15:56:45 UTC
Step to reproduce:
1. Create project
2. change code
3. Call Local History
4. Restore All changes (->)
5. Open file - all breakpoints are at end of file
 If in file was more then 1 bp they all are at end now
Comment 1 Egor Ushakov 2008-08-04 16:47:42 UTC
I see the same behavior in Java, reassigning to Local History.
Standard Annotations should not be lost after Local history changes.
Comment 2 Tomas Stupka 2008-08-20 09:46:23 UTC
the only way i was able to reproduce was when restoring changes via the editable diff view - reassigning
Comment 3 Maros Sandor 2008-08-20 13:26:23 UTC
I have no idea why this happens, editor please evaluate.
Comment 4 Vitezslav Stejskal 2008-08-21 11:54:35 UTC
I think the problem here is that you had the file closed when reverting its changes. Breakpoints in files opened in the
editor are updated when you modify the file (eg. by reverting its changes). Breakpoints in closed files are left at
their original positions, which (depending on the reverted changes) may be moved anywhere in the text (ie. towards the
end of the document if reverting makes the document shorter).

This is definitely not going to be easy to fix, because modules are generally free to grab document positions and
persist them wherever they want and the editor infrastructure has no way of telling the modules that they have to update
them. There could be even bigger problem in the general inability to detect external changes made to files.
Comment 5 Max Sauer 2008-11-25 13:19:41 UTC
This will be resolved LATER.
Comment 6 Quality Engineering 2009-11-02 11:04:49 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX