Bug 242883 - [completion] code complete could insert trailing semicolon for void methods
Summary: [completion] code complete could insert trailing semicolon for void methods
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-01 10:21 EDT by Adam Kiezun CLA
Modified: 2008-08-05 18:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2008-08-01 10:21:38 EDT
3.3.2
when code completing to insert the name of the method, a semicolon could be added at the end if the method's type is void

example:
void foo(){
 ///do things
}


fo<CODE COMPLETE>
inserts
foo()

while it could do
foo()
thus saving me typing.

This works only for void methods because there is nothing else you would want to type after the call -- you must type a semicolon.