Bug 44765 - New formatter not properly formatting long method invocation
Summary: New formatter not properly formatting long method invocation
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-13 12:51 EDT by Joseph Cavanaugh CLA
Modified: 2003-12-17 05:37 EST (History)
1 user (show)

See Also:


Attachments
Actual result with latest changes (482 bytes, text/plain)
2003-11-26 08:58 EST, Olivier Thomann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Cavanaugh CLA 2003-10-13 12:51:52 EDT
When calling a method and passing it a really long string, the formatter is 
putting the argument right after the long string on the same line instead of 
putting it on a new line:

TestClass.testMethod(foo, "My Application",
        "This is a test This is a test This is a test "
                + "This is a test This is a test This is a test "
                + "This is a test This is a test This is a test "
                + "This is a test This is a test This is a test "
                + "This is a test This is a test This is a test "
                + "This is a test This is a test This is a 
test"                , "This is an another string", new Object());
Comment 1 Olivier Thomann CLA 2003-11-26 08:57:48 EST
Now we have the result. See attachment.
If this is good enough, I will release it.
Comment 2 Olivier Thomann CLA 2003-11-26 08:58:17 EST
Created attachment 6968 [details]
Actual result with latest changes
Comment 3 Joseph Cavanaugh CLA 2003-11-26 09:24:18 EST
Looks good.  Thanks again!
Comment 4 Olivier Thomann CLA 2003-11-26 12:45:22 EST
Fixed and released in HEAD.
Regression test added.
Comment 5 David Audel CLA 2003-12-17 05:37:33 EST
Verified for 3.0M6