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

Bug 404343

Summary: Rewrite should insert space at the beginning when new extended operand is inserted at '0' index
Product: [Eclipse Project] JDT Reporter: Jay Arthanareeswaran <jarthana>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
Proposed fix none

Description Jay Arthanareeswaran CLA 2013-03-26 05:56:28 EDT
This is likely to create problems only when the right hand operand or existing extended operands are of type String. 

Consider this case:

a + "Processing " + " of "+ "..."

When trying to insert something like c++ using AST Rewrite, it produces code like this:

a + "Processing " +++c " of "+ "..."
Comment 1 Jay Arthanareeswaran CLA 2013-03-26 05:59:13 EDT
Created attachment 229031 [details]
Proposed fix

Proposed fix with test
Comment 2 Jay Arthanareeswaran CLA 2013-03-26 06:00:49 EDT
This is not important and can go after 4.3.
Comment 3 Eclipse Genie CLA 2019-10-15 08:27:34 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.