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 238720 - [Instant rename] Instant rename does not work with search&replace
Summary: [Instant rename] Instant rename does not work with search&replace
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks: 215138
  Show dependency tree
 
Reported: 2013-11-22 20:25 UTC by Jiri Prox
Modified: 2016-07-07 07:17 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 2013-11-22 20:25:27 UTC
Instant rename does not work correctly with search&replace

Steps to reproduce
1) have a code:
public class NewClass1 {

    int x;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void use() {
        int i = getX();
    }
}

2) start renaming the 'getX' in method use()
3) invoke searcdh&replace and configure it to replace 'getX' with 'newName'
4) click on Replace (note: Replace All works fine)

-> 
public class NewClass1 {

    int x;

    public int () {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void use() {
        int i = ();
newName    }
}



Product Version: NetBeans IDE Dev (Build 20131121-463f9d09987b)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Ralph Ruijs 2014-01-07 23:27:01 UTC
The instant rename popup has been disabled in 8.0 (bug 215138, comment 7)
Comment 2 Martin Balin 2016-07-07 07:17:55 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss