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 250366 - Parameter completion offers properties of all parameters in 1st object
Summary: Parameter completion offers properties of all parameters in 1st object
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2015-02-11 13:07 UTC by Vladimir Riha
Modified: 2015-02-11 13:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (78.30 KB, text/plain)
2015-02-11 13:07 UTC, Vladimir Riha

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-02-11 13:07:31 UTC
Created attachment 151949 [details]
IDE log

Please try following in JS file:

==== file.js =====
var rockband = {
    frontman : "Joe",
    "guitar" : "Jim",
    "solo": "Jack",
    "guitar#2" : "Jim2",
    albums : {
        "album1" : {released : new Date(), ready: 1},
        "album2" : {released : new Date(), ready: 1}

function Folkband(){ = "";
    this.popularity =1; = function(){}

Folkband.prototype.worth = 100;

 * @param {rockband} o
 * @param {Folkband} b
 * @returns {undefined}
Folkband.prototype.pokus = function(o,b){}

var e=  new Folkband(); e.pokus({}, {});

==== file.js end  =====

Now if you invoke cc in position of "|" in
  e.pokus({|}, {});

it will offer properties of both, rockband and Folkband and the code completion in the 2nd parameter is not offering anything.

Thank you 

Product Version: NetBeans IDE Dev (Build web-main-1920-on-20150211)
Java: 1.7.0_67; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)