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 234373 - Doubled public properties in with block using this
Summary: Doubled public properties in with block using this
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 11:28 UTC by Vladimir Riha
Modified: 2013-08-19 06:34 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-08-14 11:28:07 UTC
Please try:

function Player() {
 
    with(this){
        
    }
    
    this.play = function() {
        window.console.log("hraju");
    };
    this.brand = "";
    
}

and invoke cc inside with block
=> brand and play() are both twice in code completion list



Product Version: NetBeans IDE Dev (Build web-main-11351-on-20130814)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2013-08-16 08:14:56 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/8056148c0d62
Comment 2 Quality Engineering 2013-08-17 02:21:00 UTC
Integrated into 'main-silver', will be available in build *201308162300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8056148c0d62
User: Petr Pisl <ppisl@netbeans.org>
Log: #234373 - Doubled public properties in with block using this
Comment 3 Vladimir Riha 2013-08-19 06:34:15 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201308182300)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)