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

Bug 343053

Summary: [content assist] properties of constructor shown on instance proposals
Product: [WebTools] JSDT Reporter: Philippe Marschall <philippe.marschall>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: NEW --- QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: Future   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
sample file to reproduce the issue none

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