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 193964 - Refactoring of class variables is done in one place only
Summary: Refactoring of class variables is done in one place only
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-02 22:45 UTC by Filip Zamboj
Modified: 2011-01-04 13:47 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 Filip Zamboj 2011-01-02 22:45:37 UTC
Product Version: NetBeans IDE Dev (Build 201012140001)
Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307

class newPHPClass {
    protected $a; 
    protected $b; 
    
    function __construct($a, $b) {
        $this->a = $a;
        $this->b = $b;
    }

    public function getA() {
        return $this->a;
    }

    public function setA($a) {
        $this->a = $a;
    }

    public function getB() {
        return $this->b;
    }

    public function setB($b) {
        $this->b = $b;
    }


}

use refactor -> rename on $this->a in constructor. Rename to c. Only change occurs in protected $a; which is changed to protected $c. No other occurrences are changed.
Comment 1 Petr Pisl 2011-01-04 13:47:11 UTC
This has same reason as issue #193316. I push the fix for it at 12/17, so should be fixed. At least I cannot reproduce it with the current build. It was changeset: http://hg.netbeans.org/main/rev/7e5d782df592

Please reopen, if you can still reproduce.