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 270813 - Completion shows non constructors after new operator
Summary: Completion shows non constructors after new operator
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2017-06-06 10:49 UTC by riksoft
Modified: 2017-06-06 10:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description riksoft 2017-06-06 10:49:26 UTC
var o = new <constructor>

after the word "new" the code completion shows everything, even non constructors like Math, JSON, Symbol, Reflect, Intl, SIMD, Atomics, etc. that cannot be used with the new operator.

By the way, could be of great help to have a way to exclude our own static classes from being shown completely after the new operator, e.g. using @static or something like that. If already existing I didn't find it.