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 170973 - cannot undo renaming errors
Summary: cannot undo renaming errors
Status: RESOLVED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 08:58 UTC by vexah
Modified: 2016-09-22 02:42 UTC (History)
1 user (show)

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 vexah 2009-08-27 08:58:40 UTC
step 1 :
 code sample :
  Class A
  {
   private $b , $c ;
   function foo(){ return $this->b ;}
  }

step 2 :
  do :
   select $b, right click => rename, tip $t*, stop renaming
  note :
   * is a key in error

step 3 :
  observe result :
   code sample :
    Class A
    {
     private $t* , $c ;
     function foo(){ return $this->t* ;}
    }

step 4 :
 do :
  try to rename $t* like in step 2

Problem :
 We can't rename correctly after a key in error,
 if the property is repeated, got to replace|regexp fix the keystroke error
Comment 1 Filip Zamboj 2010-09-15 12:29:52 UTC
batch reassigning
Comment 2 Tomas Mysik 2011-06-08 14:57:19 UTC
Batch reassigning.
Comment 3 Ondrej Brejla 2011-08-15 15:32:49 UTC
Reproducible in NB 7.0.1.
Comment 4 amobilia 2016-09-22 02:42:14 UTC
Reproductible in 8.2rc / Dev 201609210002 

A var name as $t* can't exist in PHP.
On case of error, just use Ctrl+Z to cancel the rename. (maybe not available on the 6.x branch ;-))

=> Not a defect IMHO.
Feel free to re open the ticket if required.

Regards,