Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324718 - [formatter]Indentation-Combination of Concatenation and Function Arguments does not work as expected
Summary: [formatter]Indentation-Combination of Concatenation and Function Arguments do...
Status: VERIFIED DUPLICATE of bug 303519
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.11 M1   Edit
Assignee: Mateusz Matela CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 05:24 EDT by Daniel Schaarschmidt CLA
Modified: 2019-01-08 09:06 EST (History)
5 users (show)

See Also:


Attachments
Sample Source (776 bytes, text/plain)
2010-09-08 05:26 EDT, Daniel Schaarschmidt CLA
no flags Details
Formatter Settings (29.13 KB, application/xml)
2010-09-08 05:26 EDT, Daniel Schaarschmidt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Schaarschmidt CLA 2010-09-08 05:24:04 EDT
Build Identifier: 20100617-1415

The Formatter is set to indent by one expressions and arguments in function calls. Each of them seperately works as expected, but a combination of both in one statement should result in a deeper indentation, but it does not.

See the included Formatter-Settings and Sample Code. The first and second call to doSomething() are indented as expected, but the third should indent line 15 another time, because "bar" is a wrapped parameter in the Constructor-Call Container() which itself is part of an already indented line because of the wrapped concatenation in line 14.

Reproducible: Always

Steps to Reproduce:
1.Import the Formatter Settings and activate them
2.Open the Sample
3.Format it
Comment 1 Daniel Schaarschmidt CLA 2010-09-08 05:26:00 EDT
Created attachment 178375 [details]
Sample Source
Comment 2 Daniel Schaarschmidt CLA 2010-09-08 05:26:27 EDT
Created attachment 178376 [details]
Formatter Settings
Comment 3 Ayushman Jain CLA 2010-09-08 09:45:24 EDT
Frederic, please follow up. Thanks!
Comment 4 Mateusz Matela CLA 2018-12-28 14:59:58 EST
This problem no longer occurs after the formatter redesign.

*** This bug has been marked as a duplicate of bug 303519 ***
Comment 5 Jay Arthanareeswaran CLA 2019-01-08 09:06:22 EST
Verified for 4.11 M1 using build I20190107-2050.