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

Summary: Completion shows non constructors after new operator
Product: javascript Reporter: riksoft <riksoft>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description riksoft 2017-06-06 10:49:26 UTC
Writing
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.