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 255303 - Variadic variables are marked as uninitialized
Summary: Variadic variables are marked as uninitialized
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2015-09-15 14:33 UTC by attila
Modified: 2015-09-22 14:04 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description attila 2015-09-15 14:33:40 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Linux version 3.19.0-28-generic running on amd64
Java; VM; Vendor = 1.8.0_45-internal
Runtime = OpenJDK 64-Bit Server VM 25.45-b02

Example code:

    public function foo(Fooable ...$fooables) {
        return fooBar('bar', $fooables);
    }

Shows the second $fooables; "Variable $fooables seems to be uninitialized".

This variable will be an array and should be treated as such in the editor.
Comment 1 Petr Pisl 2015-09-22 14:04:22 UTC
I think this is Ecma6 feature.