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 - Only the first javascript constructor per file is shown correctly
Summary: Only the first javascript constructor per file is shown correctly
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-24 15:23 UTC by juozhe
Modified: 2016-12-17 17:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
navigator problem (8.94 KB, image/png)
2016-11-24 15:23 UTC, juozhe
Details
editor problem (7.06 KB, image/png)
2016-11-24 15:24 UTC, juozhe
Details

Note You need to log in before you can comment on or make changes to this bug.
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.

:-)