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 118736 - Wrong undo handling for instant rename
Summary: Wrong undo handling for instant rename
Status: VERIFIED DUPLICATE of bug 113042
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-12 16:09 UTC by Jiri Prox
Modified: 2007-10-14 21:00 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 Jiri Prox 2007-10-12 16:09:27 UTC
Product Version: NetBeans IDE Dev (Build 20071012110141)
Java: 1.6.0_03-ea; Java HotSpot(TM) Client VM 1.6.0_03-ea-b01
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

Undo is performed wrongly when instant rename is active after convert anonymous to inner. 

Steps to reproduce:
1) have a class:
public class NewClass1 {
    
    Runnable r = new Runnable() {

        public void run() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
    };
    
    

}

2) invoke Convert Anonymous to Inner
-> Inner class is introduced, instant rename of its name is active
3) press ctrl-Z
-> code is reverted but instant rename is still active
4) move caret one line down and start typing
-> word "Runnable" is inserted in the text
Comment 1 Jan Lahoda 2007-10-12 18:19:33 UTC

*** This issue has been marked as a duplicate of 113042 ***
Comment 2 Jiri Prox 2007-10-14 21:00:07 UTC
verified duplicate