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 251776 - Prefer module's properties in case of clash in names with JS Platform
Summary: Prefer module's properties in case of clash in names with JS Platform
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-12 13:22 UTC by Vladimir Riha
Modified: 2015-04-12 13:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (1.04 MB, application/zip)
2015-04-12 13:22 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-04-12 13:22:18 UTC
Created attachment 153141 [details]
sample project

Please check the attached project and:
 - open src/ext/day/note/controller.js
 - type on line 7:
     dbProvider.
 => opened code completion does contain create() method but it is marked as "JS Platform" and as method coming from the required module. The problem is probably due to clash of names. It would be nice if code completion would prefer module's methods/properties over the general ones in list of suggestions. 


Thank you



Product Version: NetBeans IDE Dev (Build 201504110001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.13.0-45-generic running on amd64; UTF-8; en_US (nb)