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 218136 - Rename Refactor for properties declared via Prototype not working
Summary: Rename Refactor for properties declared via Prototype not working
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 13:11 UTC by Vladimir Riha
Modified: 2012-12-13 08:19 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 Vladimir Riha 2012-09-11 13:11:28 UTC
Try to Refactor|Rename setStatic function from this listing:


function Player(url, name){
    var static_int = 0;
    Player.prototype.setStatic = function(v){ static_int = v; };
}
 
var p1 = new Player();
p1.setStatic(100);


If you start on function declaration then the call is not renamed and vice versa



Product Version: NetBeans IDE Dev (Build 201209110001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2012-11-28 10:16:52 UTC
This is fixed by recent changes. Adding test for it.
Comment 2 Quality Engineering 2012-11-30 02:51:49 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/22e54f4ada40
User: Petr Pisl <ppisl@netbeans.org>
Log: #218136 - Rename Refactor for properties declared via Prototype not working
Comment 3 Vladimir Riha 2012-12-13 08:19:07 UTC
You're right, thanks


Product Version: NetBeans IDE Dev (Build web-main-9509-on-20121212)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b17
System: Linux version 3.2.0-34-generic-pae running on i386; UTF-8; en_US (nb)