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 214205 - Wrong code completion for instance methods, properties in javascript2
Summary: Wrong code completion for instance methods, properties in javascript2
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 217577
  Show dependency tree
 
Reported: 2012-06-14 12:58 UTC by Martin Fousek
Modified: 2012-12-01 02:54 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 Martin Fousek 2012-06-14 12:58:09 UTC
Product Version: NetBeans IDE Dev (Build 20120614-c6a48f1f4083)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Linux version 3.0.0-20-generic running on amd64; UTF-8; en_US (nb)

When I have something like:
var number = 5;
number.|

new Number().|

On the | position should CC show instance methods and properties - i.e.: toExponential(), toFixed(), constructor. Instead of that there are static one for Number and Object.

Sorry for P2 but I would need to have it fixed sooner than another issue to be able to check generated JavaScript2 stubs. Thanks a lot!
Comment 1 Martin Fousek 2012-09-06 09:49:31 UTC
Also the CC and navigator window are missing the type of the property.
Comment 2 Martin Fousek 2012-09-13 07:27:41 UTC
It looks that the first part was already probably fixed by rewrite of types resolving and just the second part (not so important remains).

So downgrading to P3 priority and just the case new Number().| doesn't work.
Comment 3 Martin Fousek 2012-11-30 08:02:29 UTC
Looks to be already fixed. I added tests for checking that functionality in the web-main #7693c0a6dee7.
Comment 4 Quality Engineering 2012-12-01 02:54:41 UTC
Integrated into 'main-golden', will be available in build *201212010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7693c0a6dee7
User: Martin Fousek <marfous@netbeans.org>
Log: #214205 - Wrong code completion for instance methods, properties in javascript2