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

Bug 343054

Summary: [content assist] <init> shows up as a completion proposal
Product: [WebTools] JSDT Reporter: Philippe Marschall <philippe.marschall>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: 3.3Flags: thatnitind: review+
Target Milestone: 3.2.5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch none

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.