Bug 343053 - [content assist] properties of constructor shown on instance proposals
Summary: [content assist] properties of constructor shown on instance proposals
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 18:00 EDT by Philippe Marschall CLA
Modified: 2013-06-19 11:09 EDT (History)
0 users

See Also:


Attachments
sample file to reproduce the issue (181 bytes, text/plain)
2011-04-16 18:01 EDT, Philippe Marschall CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Marschall CLA 2011-04-16 18:00:04 EDT
What steps will reproduce the problem?
1. create a constructor
2. add a property to the constructor
3. create a new instance of the constructor
4. you see the property of the constructor as a completion proposal on the instance

This is probably due to the JDT legacy of JSDT. The constructor property shows up decorated with an 's' symbolizing static.

See the attached JavaScript file. Place the cursor after 'instance.co' and hit Ctrl + Space you will get 'constructorAttribute' as a completion proposal which you shouldn't because it won't be there at runtime.
Comment 1 Philippe Marschall CLA 2011-04-16 18:01:09 EDT
Created attachment 193426 [details]
sample file to reproduce the issue