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

Bug 495734

Summary: Typing out a synchronized block deletes the closed parentheses
Product: [Eclipse Project] JDT Reporter: Erick Robertson <vir4030>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Erick Robertson CLA 2016-06-08 14:13:11 EDT
when I type out the following code:

  synchronized (this.orders) {

When I press the open parenthesis, it adds the closed parenthesis.  When I type the period after this, it brings up a context menu containing the local property "orders".  It's on the top so it's highlighted by default.  When I type out "orders", it types it in between the parentheses as I would expect.  But when I press the closed parenthesis, it does not close the suggestion box that has popped up beneath it.  When I then press the spacebar after the closed parenthesis, it deletes the closed parenthesis as it hides the suggestion box.

It shouldn't be deleting that closed parenthesis.
Comment 1 Eclipse Genie CLA 2020-03-23 16:55:06 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.