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

Bug 350908

Summary: [content assist] Member variables are only correctly typed if they are constructed in-line
Product: [WebTools] JSDT Reporter: Dominic Chambers <dominic.chambers>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED WORKSFORME QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.5.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Test case for this bug report none

Description Dominic Chambers CLA 2011-07-01 05:24:25 EDT
Build Identifier: 20110505-1223

The type of local variables and member variables is automatically determined by either looking at the jsdoc annotation for the invoked method, or by using type inference. For member variables however, this currently fails if a method call is involved rather than having the member variable constructed in-line.

Reproducible: Always

Steps to Reproduce:
1. open the attached class in Eclipse
2. try doing content assist on the two local variables and the two member variables
3. you should see that all but the last member variable is correctly identified as being of type Date
Comment 1 Dominic Chambers CLA 2011-07-01 05:25:31 EDT
Created attachment 198951 [details]
Test case for this bug report
Comment 2 Chris Jaun CLA 2013-08-01 13:33:41 EDT
This is working correctly now in WTP 3.5.1. Checked against the 7/18 build.