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 268377

Summary: ECMAScript 6 support (bug with constructors)
Product: javascript Reporter: murtukov
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Code example with 3 classes
Code example with 3 classes (edited)

Description murtukov 2016-10-06 13:05:43 UTC
Created attachment 162366 [details]
Code example with 3 classes

If you create more than one class in a single js file, the constructors of these classes are recognized incorrectly. More precisely, only the constructor of first class will be recognized correctly and all the others will be recognized as independent functions (you can see it in Navigation panel on the screenshot)
Comment 1 murtukov 2016-10-06 13:34:08 UTC
Created attachment 162367 [details]
Code example with 3 classes (edited)
Comment 2 Petr Pisl 2016-10-06 14:10:46 UTC
Reproducible
Comment 3 Petr Pisl 2016-10-06 15:56:50 UTC
Fixed in web-main.
http://hg.netbeans.org/web-main/rev/7b24045b4eb3

Thanks for reporting.
Comment 4 Quality Engineering 2016-10-07 02:45:15 UTC
Integrated into 'main-silver', will be available in build *201610070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7b24045b4eb3
User: Petr Pisl <ppisl@netbeans.org>
Log: #268377 - ECMAScript 6 support (bug with constructors)
Comment 5 Petr Pisl 2016-12-06 07:09:22 UTC
Transplanted to the releases/release82.