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 269105

Summary: Only the first javascript constructor per file is shown correctly
Product: editor Reporter: juozhe
Component: NavigationAssignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: navigator problem
editor problem

Description juozhe 2016-11-24 15:23:46 UTC
Created attachment 163015 [details]
navigator problem

The following code shows the problem in Javascript navigator. Navigator shows both classes and both constructors. However, only the constructor of the first class is correctly shown in navigator within the class. The second constructor is shown out of place.

Similarly, the code editor shows the argument for the second constructor as unused.

See attached screenshots for both manifestations.
Comment 1 juozhe 2016-11-24 15:24:36 UTC
Created attachment 163016 [details]
editor problem
Comment 2 juozhe 2016-11-24 15:25:07 UTC
Thanks for the excellent javascript 2015 tool.
Comment 3 juozhe 2016-11-24 15:25:39 UTC
class C1 {
    constructor (X) {
        this.x = X;
    }
}
class C2 {
    constructor (X) {
        this.x = X;
    }
}
Comment 4 juozhe 2016-12-17 17:26:45 UTC
NetBeans 8.2 Patch 1 fixes the problem, although I don't this bug number on the list of 110 corrections. Maybe it's a duplicate.

:-)