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

Summary: cannot undo renaming errors
Product: php Reporter: vexah <vexah>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED INVALID    
Severity: blocker CC: amobilia
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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,