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 239187 - [Rename] Doesn't work when only last character is deleted
Summary: [Rename] Doesn't work when only last character is deleted
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:
: 238804 (view as bug list)
Depends on:
Blocks: 215138
  Show dependency tree
 
Reported: 2013-12-06 11:00 UTC by ssazonov
Modified: 2016-07-07 07:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
step-by-step (92.84 KB, image/png)
2013-12-06 11:00 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2013-12-06 11:00:21 UTC
Created attachment 142898 [details]
step-by-step

1. Create sinmple java class:

package test;

public class ClassA {

    public int test1() {
        return 1;
    }

    public int usage() {
        test1();
        new Integer(test1());
        return test1();
    }

    {
        test1();
    }

    int x = test1();
}

2. Put caret at "public int test1|() {" where '|' is a position of caret

3. Press "Ctrl+R", one time press "Rigt arrow", one time press "Backspace", one time press "Enter"

>> Renaming haven't been performed (alseo see step-by-step img)

Product Version: NetBeans IDE Dev (Build 201311290002)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Jiri Prox 2013-12-06 13:05:36 UTC
The problem is more general, the instant rename does not work when only delete and backspace is used to change the name
Comment 2 Ralph Ruijs 2014-01-07 23:18:30 UTC
The instant rename popup has been disabled in 8.0 (bug 215138, comment 7)
Comment 3 Ralph Ruijs 2014-01-07 23:20:59 UTC
*** Bug 238804 has been marked as a duplicate of this bug. ***
Comment 4 Martin Balin 2016-07-07 07:18:46 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