Bug 103049 - [formatter] Qualified object allocation arguments adds extra newline
Summary: [formatter] Qualified object allocation arguments adds extra newline
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
: 397120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-07 13:56 EDT by Aaron Luchko CLA
Modified: 2020-01-29 15:29 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Luchko CLA 2005-07-07 13:56:04 EDT
I've noticed some odd behavior with the "Line Wrapping" > "Function Calls" >
"Qualified object allocation arguments" settings

with the Line wrap settings set to "Wrap only when necessary" (default) and the
indentation changed to "Indent on column" the preview window (with width 40) shows

/**
 * Qualified object allocation arguments
 */
class Example
{
  SomeClass foo()
  {
    return SomeOtherClass.new SomeClass(
                                        100,
                                        200,
                                        300,
                                        400,
                                        500);
  }
}

however there are 5 more columns available and I believe a more correct behavior
given the settings would be

    return SomeOtherClass.new SomeClass(100,
                                        200,
                                        300,
                                        400,
                                        500);
Comment 1 Aaron Luchko CLA 2005-07-07 14:12:49 EDT
On further look it appears as if it's reading the "Force split" option to be on,
even when it's turned off.
Comment 2 Frederic Fusier CLA 2008-08-18 08:06:58 EDT
Ownership has changed for the formatter, but I surely will not have enough time to fix your bug during the 3.5 development process, hence set its priority to P5.
Please provide a patch if you definitely need the bug to be fixed in this version and I'll have a look at it...
TIA
Comment 3 Jay Arthanareeswaran CLA 2013-01-01 00:05:46 EST
*** Bug 397120 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2020-01-29 15:29:31 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. 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.