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 238948 - Instant Rename popup in 8.0 doesn't work with code completion -> generates invalid code
Summary: Instant Rename popup in 8.0 doesn't work with code completion -> generates in...
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-28 22:59 UTC by markiewb
Modified: 2016-07-07 07:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example (3.00 KB, image/png)
2013-11-28 22:59 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-11-28 22:59:23 UTC
Created attachment 142703 [details]
Example

Instant Rename popup in 8.0 doesn't work with code completion. It will mess up the code and it isn't reversible.


* Take this code

boolean fo|o=false; // | defines the caret
if (foo) {}

* ALT-SHIFT-R
* press CTRL-SPACE
* move arrow key -> code completion proposes new name for the variable
* ENTER to use the new variable name (!!! use the proposal)

-> ACTUAL: 
* code gets messed up - see screenshot
* there is no real entry in the undo buffer (I can undo the rename, but not all occurrences are renamed)
Comment 1 markiewb 2013-11-28 22:59:34 UTC
Product Version: NetBeans IDE Dev (Build 201311280002)
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 2 Ralph Ruijs 2013-12-12 13:54:11 UTC
The instant rename popup has been disabled in 8.0 (bug 215138, comment 7)
Comment 3 Martin Balin 2016-07-07 07:17:48 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