Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321429 - [typing] Semicolon automatically inserted at wrong place (for multi-line statement)
Summary: [typing] Semicolon automatically inserted at wrong place (for multi-line stat...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-31 07:12 EDT by Jerry Mising name CLA
Modified: 2019-10-11 01:52 EDT (History)
2 users (show)

See Also:


Attachments
enable automatically insert semicolons (3.74 KB, image/png)
2010-07-31 07:13 EDT, Jerry Mising name CLA
no flags Details
create a multi-line statement (18.99 KB, image/png)
2010-07-31 07:19 EDT, Jerry Mising name CLA
no flags Details
type semicolon (19.28 KB, image/png)
2010-07-31 07:21 EDT, Jerry Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Mising name CLA 2010-07-31 07:12:43 EDT
Build Identifier: 20100617-1415

For multiple line statement, semicolon is appended at the end of line cursor locates, rather than the end of the statement.

Reproducible: Always

Steps to Reproduce:
1. Turn on "Automatically insert at correct position" for "Semicolons".
2. Create a multi-line statement.
3. Move the cursor to a line that's not the last line, and type semicolon.
4. Notice the semicolon inserted.
Comment 1 Jerry Mising name CLA 2010-07-31 07:13:44 EDT
Created attachment 175642 [details]
enable automatically insert semicolons
Comment 2 Jerry Mising name CLA 2010-07-31 07:19:53 EDT
Created attachment 175644 [details]
create a multi-line statement

The "new Runnable" is generated by Content Assist. Cursor is located at Runnable(|).
Comment 3 Jerry Mising name CLA 2010-07-31 07:21:30 EDT
Created attachment 175645 [details]
type semicolon

Cursor is located at Runnable(|) after Content Assist. Type semicolon and notice the ";" is inserted at the end of the line.
Comment 4 Olivier Thomann CLA 2010-08-01 10:25:06 EDT
Moving to JDT/Text
Comment 5 Eclipse Genie CLA 2019-10-11 01:52:13 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.