Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 527552 - [typing] Java editor auto correction: curly bracket { can't be written into String
Summary: [typing] Java editor auto correction: curly bracket { can't be written into S...
Status: CLOSED DUPLICATE of bug 520081
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.7.1   Edit
Hardware: PC Windows 10
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-21 08:46 EST by Restful Koala CLA
Modified: 2017-11-21 12:25 EST (History)
1 user (show)

See Also:


Attachments
Snippet to reproduce issue (946 bytes, application/octet-stream)
2017-11-21 08:46 EST, Restful Koala CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Restful Koala CLA 2017-11-21 08:46:53 EST
Created attachment 271572 [details]
Snippet to reproduce issue

Hello!

Typing the open curly bracket into the string leads to some magic interpretation which makes the editor think it should do the bracket behind the closing bracket of Status

Initial:
new Status(IStatus.ERROR, Activator.PLUGIN_ID, NLS.bind("Error: failed", binding));

Expected:
new Status(IStatus.ERROR, Activator.PLUGIN_ID, NLS.bind("Error: {failed", binding));

Result:
new Status(IStatus.ERROR, Activator.PLUGIN_ID, NLS.bind("Error: failed", binding)) {;

Please find example code attached.
Comment 1 Dani Megert CLA 2017-11-21 12:25:31 EST

*** This bug has been marked as a duplicate of bug 520081 ***