Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331408

Summary: [editor] JSDoc hover on a function does not show types for parameters on the first line
Product: [WebTools] JSDT Reporter: Mauro Molinari <mauromol>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: VERIFIED WORKSFORME QA Contact: Chris Jaun <cmjaun>
Severity: minor    
Priority: P3    
Version: 3.2.1   
Target Milestone: Future   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mauro Molinari CLA 2010-11-30 04:44:18 EST
Build Identifier: M20100909-0800

If you write a function and specify its parameter types in a JSDoc, if you look at the JSDoc hover you'll see that the parameters are always reported as "any" in the first line

Reproducible: Always

Steps to Reproduce:
1. create a static web project with JavaScript support
2. create test.js with the following content:

/**
 * @param {String} myParam
 * @returns {Boolean}
 */
function test(myParam) {
	return true;
}

3. look at the JSDoc hover (press F2 on "test"); this is what I see:

Boolean [test.js] test(any myParam)

Parameters:
  {String} myParam
@returns
  {Boolean}

What I would expect:

Boolean [test.js] test(String myParam)

Parameters:
  {String} myParam
@returns
  {Boolean}
Comment 1 Chris Jaun CLA 2013-07-10 11:18:46 EDT
This is working correctly now in WTP 3.5.
Comment 2 Mauro Molinari CLA 2013-07-11 02:41:22 EDT
I confirm it works with WTP 3.5.