Summary: | [format] Formatter fails to wrap lines for assignment statements | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Gopakumar <gopakumarn> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | CC: | analogue, ddmcleod, dev, dfayerma, fx, ggregory, Grant.Gardner | ||||
Version: | 3.0 | ||||||
Target Milestone: | 3.2 M2 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Gopakumar
2004-08-11 07:17:42 EDT
This is a known problem that will be investigated post 3.1. Created attachment 26654 [details]
Proposed fix
This patch seems to fix this issue. I will do some further testing before
releasing it.
Should we use the same option for all assignments (initialization of local variables and field declarations, assignment, compound assignment)? I don't think this should apply to assignment inside annotations, because we might end up with bad line wrapping. *** Bug 87189 has been marked as a duplicate of this bug. *** Right now I share the same option. I called it: FORMATTER_ALIGNMENT_FOR_ASSIGNMENT This will be available only at the code level for now. It needs to be added in the code formatter preference page. See bug 108478. Fixed and released in HEAD. Regression tests in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests.test593/596. *** Bug 93433 has been marked as a duplicate of this bug. *** Verified in I20050920-0010 for 3.2M2 *** Bug 63631 has been marked as a duplicate of this bug. *** *** Bug 124792 has been marked as a duplicate of this bug. *** *** Bug 90239 has been marked as a duplicate of this bug. *** |