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 36199 - Annotations are drawn behind the guarded block after external modif
Summary: Annotations are drawn behind the guarded block after external modif
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on: 11208
Blocks:
  Show dependency tree
 
Reported: 2003-09-19 10:11 UTC by Milan Kubec
Modified: 2009-11-02 11:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot before (30.51 KB, image/png)
2005-07-08 12:50 UTC, Milan Kubec
Details
screenshot after (30.12 KB, image/png)
2005-07-08 12:51 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2003-09-19 10:11:56 UTC
JDK 1.4.2, dev build with patches:
http://www.netbeans.org/issues/show_bug.cgi?id=35914 
http://www.netbeans.org/issues/show_bug.cgi?id=33165
http://www.netbeans.org/issues/show_bug.cgi?id=14803 
http://www.netbeans.org/issues/show_bug.cgi?id=35930

All Breakpoints in guarded block are drawn on
first line after guard. block after reload after
external modification.

Steps to reproduce:

1) Open java src file in IDE editor
2) Open the same file in external editor
3) Toggle BPs inside guarded block
4) Scroll caret outside the guarded block to move
the guard. block out of editor screen, e.g. to the
end of the file
5) Shorten the file in external editor - remove
lines above the guarded block
6) Let the file be reloaded in IDE editor
7) Scroll to guarded block

All BPs are on one line just after the guarded block.
Comment 1 Milan Kubec 2003-09-29 15:27:24 UTC
Happend again after reload after basic external modification - no
shortening of file was needed.
Comment 2 Miloslav Metelka 2003-09-30 09:45:21 UTC
I've turned on -J-Dnetbeans.debug.editor.document=true
and the behavior is caused by the fact that the guarded sections get
refreshed both when document is loaded or reloaded.
 The reason why the annotations are moved to the end of the block is
that the new guarded section text gets inserted prior to removing the
original guarded section text.
 This is hardly fixable unless the whole mechanism of guarded sections
refreshing is changed to do comparisons and just incremental changes
inside the section of the text that has to be changed.
 Please close it if you are satisfied with the explanation or reassign
it to java module. Thanks.
Comment 3 Milan Kubec 2003-09-30 12:06:10 UTC
Reassigned to java module as Mila explained.
Comment 4 Tomas Hurka 2004-08-19 13:12:41 UTC
It will not be fixed in 4.0
Comment 5 Jan Becicka 2005-02-17 13:23:29 UTC
I don't understand what is the bug. I don't see any. Probably fixed by
JavaEditor rewrite.
Comment 6 Milan Kubec 2005-07-08 12:50:06 UTC
The bug is still there, easier way to reproduce:

1) Create Form file, add couple of components to the form
2) Switch to Source, set couple of breakpoints in the source of the form
3) Switch to Design and modify the form
4) Go back to Source - all breakpoints are stored in the first line after guard.
block

Attaching screenshots before and after.
Comment 7 Milan Kubec 2005-07-08 12:50:46 UTC
Created attachment 23036 [details]
screenshot before
Comment 8 Milan Kubec 2005-07-08 12:51:11 UTC
Created attachment 23037 [details]
screenshot after
Comment 9 novakm 2007-10-11 10:26:10 UTC
Still valid in latest 6.0 build
Comment 10 Max Sauer 2008-11-12 13:45:07 UTC
Vast changes required -> LATER.
Comment 11 Quality Engineering 2009-11-02 11:02:26 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX