Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350908 - [content assist] Member variables are only correctly typed if they are constructed in-line
Summary: [content assist] Member variables are only correctly typed if they are constr...
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5.1   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-01 05:24 EDT by Dominic Chambers CLA
Modified: 2013-08-01 13:33 EDT (History)
0 users

See Also:


Attachments
Test case for this bug report (305 bytes, application/x-javascript)
2011-07-01 05:25 EDT, Dominic Chambers CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.