Bug 514730

Summary: [typing] "Smart braces" inserts at incorrect position (interferes with typing a lambda expression)
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, Dirk.Steinkamp, mateusz.matela
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 505816    

Description Markus Keller CLA 2017-04-04 13:25:09 EDT
Bug 505816 enabled "Smart braces" that should auto-insert '{' at the "correct" position.

This was interfering when I wanted to type a lambda expression. Have this line, where '|' is the caret position:

	Image image= new Image(display, z -> |IMAGE_WIDTH, IMAGE_HEIGHT);

Result after typing '{':

	Image image= new Image(display, z -> IMAGE_WIDTH, IMAGE_HEIGHT) {|;

=> not smart enough.
Comment 1 Eclipse Genie CLA 2019-12-21 18:07:15 EST
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.
Comment 2 Dani Megert CLA 2019-12-22 08:42:24 EST
Still broken in 4.14.
Comment 3 Eclipse Genie CLA 2021-12-12 09:01:07 EST
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.
Comment 4 Dirk Steinkamp CLA 2022-03-04 18:20:18 EST
Seems to be fixed in the meantime. Not reproducible in 4.23M3.
Comment 5 Eclipse Genie CLA 2024-02-24 14:13:21 EST
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.