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 237914 - Override variable not fully recognized as local
Summary: Override variable not fully recognized as local
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-02 22:21 UTC by Vladimir Riha
Modified: 2015-06-12 20:35 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 Vladimir Riha 2013-11-02 22:21:12 UTC
Please try this in JS file:


var job = {a: 1}; 

function JobParser(job, results) {
    this.parse = function() {
        return job; // this is purple, should be black
    };

}
window.console.log(new JobParser({d: 1}).parse());


=> job in return statement is purple, should be black
=> if you select either job in first line or in return statement, the other one is marked as occurrence (the same for rename refactor)
=> if you select job in JobParser(job,...), then also job in return statement is highlighted



Product Version: NetBeans IDE Dev (Build 201310310001)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2015-06-11 08:14:16 UTC
Fixed in web-main
Comment 2 Quality Engineering 2015-06-12 20:35:30 UTC
Integrated into 'main-silver', will be available in build *201506121907* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/468ffdbae4eb
User: Petr Pisl <ppisl@netbeans.org>
Log: #237914 - Override variable not fully recognized as local