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 258040 - Auto-generation of C++ method bodies that have array parameters fails
Summary: Auto-generation of C++ method bodies that have array parameters fails
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-17 15:52 UTC by julianAtEg
Modified: 2016-04-20 10:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (69.67 KB, text/plain)
2016-02-17 15:52 UTC, julianAtEg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description julianAtEg 2016-02-17 15:52:30 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b18

Reproducibility: Happens every time

STEPS:
  * In a C++ class, add a method declaration 'void Foo( int x, int data[] );' to the header
  * Switch to the cpp file
  * Hit control-space and select the Foo method to generate the body
  * Foo is generated

ACTUAL:
  The generated method signature is wrong (it's in Java/C# notation): 
	void Foo( int x, int[] data )
  which is a syntax error in C++,

EXPECTED:
  The correct signature -
	void Foo( int x, int data[] )
Comment 1 julianAtEg 2016-02-17 15:52:35 UTC
Created attachment 158544 [details]
IDE log
Comment 2 Alexander Simon 2016-03-28 09:57:11 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/768b0588aa5c
Comment 3 Quality Engineering 2016-03-29 01:45:55 UTC
Integrated into 'main-silver', will be available in build *201603290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/768b0588aa5c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #258040 Auto-generation of C++ method bodies that have array parameters fails
Comment 4 Vladimir Kvashin 2016-04-15 16:59:49 UTC
verified in builds on enum server
Comment 5 soldatov 2016-04-20 10:00:40 UTC
Verified in NetBeans 8.1 with latest updates.