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 198861 - "Create Field" and varargs creates illegal field type
Summary: "Create Field" and varargs creates illegal field type
Status: RESOLVED DUPLICATE of bug 197584
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 15:56 UTC by devon_c_miller
Modified: 2011-06-02 21:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description devon_c_miller 2011-05-24 15:56:43 UTC
Given:

    class Foo {
        Foo(String... args) {
        }
    }

A "Create Field" hint is displayed, but when executed, it produces the following field:

        private String... args;

It should have produced:

        private String[] args;
Comment 1 Jan Lahoda 2011-05-30 08:13:44 UTC
The fix for bug #197584 also fixes this one. I am adding a new test case to prevent re-occurrence of this particular use case. Thanks for the report.
http://hg.netbeans.org/jet-main/rev/0f523b6a3712

*** This bug has been marked as a duplicate of bug 197584 ***
Comment 2 Quality Engineering 2011-05-31 19:33:54 UTC
Integrated into 'main-golden', will be available in build *201105310954* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0f523b6a3712
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198861: adding testcase.
Comment 3 Quality Engineering 2011-06-01 13:34:33 UTC
Integrated into 'main-golden', will be available in build *201106010401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0f523b6a3712
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198861: adding testcase.
Comment 4 Quality Engineering 2011-06-02 21:08:15 UTC
Integrated into 'main-golden', will be available in build *201106021001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0f523b6a3712
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198861: adding testcase.