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 222373 - Context of nested literal's property not resolved from its usage
Summary: Context of nested literal's property not resolved from its usage
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-19 11:01 UTC by Vladimir Riha
Modified: 2012-11-26 11:55 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-11-19 11:01:28 UTC
Sample code:

function Person(){
  this.test = {
    name : "A"
  };
}

var a = new Person();
a.test.name = "B";


If you try to highlight/rename one of the "name" occurrences, the other is not highlighted/renamed



Product Version: NetBeans IDE Dev (Build 201211160001)
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-b16
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 Petr Pisl 2012-11-21 14:29:16 UTC
Fixed in web-main. I had to rewrite a way how the occurrences are created and searched. No simple change. All tests passed. 
http://hg.netbeans.org/web-main/rev/2496cf86ee94
Comment 2 Quality Engineering 2012-11-22 02:46:12 UTC
Integrated into 'main-golden', will be available in build *201211220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2496cf86ee94
User: Petr Pisl <ppisl@netbeans.org>
Log: #222373 - Context of nested literal's property not resolved from its usage
Comment 3 Vladimir Riha 2012-11-26 11:55:12 UTC
Verified. I tried to test other cases and seems to be OK, thanks


Product Version: NetBeans IDE Dev (Build web-main-9331-on-20121126)
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-b16
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
User directory: /home/vriha/.netbeans/dev
Cache directory: /home/vriha/.cache/netbeans/dev