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 217949 - Completion contains redundant ": " if @param is missing type
Summary: Completion contains redundant ": " if @param is missing type
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P4 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-06 11:53 UTC by Vladimir Riha
Modified: 2012-09-10 06:15 UTC (History)
1 user (show)

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 Vladimir Riha 2012-09-06 11:53:23 UTC
Try code completion for this 


/**
 * @param p1 textA
 * @param {Cislo} p2 text2
 */
function test(p1, p2) {}


First param is missing type and code completion displays it as (p1: ,p2:Cislo). Would be nice to omit the ": " if type is not declared so the result is

(p1, p2:Cislo)


Product Version: NetBeans IDE Dev (Build 201209060001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2012-09-06 15:18:12 UTC
Martin, IMHO this is bug in documentation parser, because I'm getting one type for p1 param and the type is empty string. Probably the documentation provider shouldn't return nothing in such case.
Comment 2 Martin Fousek 2012-09-07 10:29:30 UTC
That's right. Already fixed in web-main #5b5bb7f67f92.
Comment 3 Quality Engineering 2012-09-08 02:07:40 UTC
Integrated into 'main-golden', will be available in build *201209080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5b5bb7f67f92
User: Martin Fousek <marfous@netbeans.org>
Log: #217949 - Completion contains redundant ": " if @param is missing type
Comment 4 Vladimir Riha 2012-09-10 06:15:56 UTC
thanks, works fine


Product Version: NetBeans IDE Dev (Build 201209100001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)