Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343054 - [content assist] <init> shows up as a completion proposal
Summary: [content assist] <init> shows up as a completion proposal
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.2.5   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 18:42 EDT by Philippe Marschall CLA
Modified: 2011-07-01 10:52 EDT (History)
1 user (show)

See Also:
thatnitind: review+


Attachments
patch (1.95 KB, patch)
2011-04-20 13:28 EDT, Chris Jaun CLA
no flags Details | Diff

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:42:53 EDT
<init> the name of the Java constructor shows up as a completion proposal.

Write the code below

var x = {};
x.

and trigger the completion proposals on x. <init> shows up as a function but shouldn't.
Comment 1 Chris Jaun CLA 2011-04-20 13:28:12 EDT
Created attachment 193724 [details]
patch

Removes the <init> proposal.

Only shows a constructor in content assist if used in a "new" expression.
Comment 2 Chris Jaun CLA 2011-07-01 10:52:53 EDT
Checked into 3.2.5 and HEAD.