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 142052 - Bookmarks incorrectly inserted on a single line when removed/inserted text
Summary: Bookmarks incorrectly inserted on a single line when removed/inserted text
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 12:38 UTC by Petr Dvorak
Modified: 2009-11-02 10:58 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 Petr Dvorak 2008-07-29 12:38:04 UTC
Product Version: NetBeans IDE Dev (Build 080729)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

1. Create a new Java class
2. Toggle bookmark on the line 1 (where the start of the comment "To change this template..." is)
3. Delete the comment
4. Undo the delete operation
5. Go to line 1 (Bookmark is still there)
6. Toggle Bookmark
-> 2nd bookmark is inserted

Now repeat the same steps excluding step 5 (after you undo the changes, invoke "Toogle Bookmark" on the line 4, where
the caret should remain)
-> bookmark on the line 1 is removed in spite the fact that caret is on line 4...
Comment 1 Petr Dvorak 2008-07-29 12:39:52 UTC
The issue can be reproduced using the "Paste" instead of "Undo"... Well, maybe I make P4 of this issue...
Comment 2 Max Sauer 2008-08-18 14:54:48 UTC
Hanzi, this seems to be result of your recent fix ( Issue 60390 ). Works ok in

Product Version: NetBeans IDE Dev (Build 20080704073734)
Java: 1.6.0_04-dp; Java HotSpot(TM) 64-Bit Server VM 1.6.0_04-b12-45-optimized
System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)
Comment 3 David Strupl 2009-03-31 15:53:32 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 4 Quality Engineering 2009-11-02 10:58:08 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX