Summary: | Formatter stops working when source code contains following line | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Amit Monbaz <amonbaz> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | CC: | daniel_megert, david_audel, jerome_lanneluc, Olivier_Thomann, philippe_mulet | ||||
Version: | 3.3 | ||||||
Target Milestone: | 3.3.1 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Amit Monbaz
2007-07-31 03:21:15 EDT
Can reproduce on I20070724-0800. This is due to a problem when the CombinedBinaryExpression is built. I don't know why, but the parenthesis are not set on the right expression leading to the failure while formatting the code. Created attachment 75062 [details]
Proposed fix
Released for 3.4M1. Added regression test in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test668. Philippe, candidate for 3.3.1? Verified for 3.4M1 using build I20070806-1800. Jérôme, +1 for 3.3.1 ? +1 for backporting to 3.3.1 Reopen for 3.3.1. Released for 3.3.1. Added regression test in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test668. Verified for 3.3.1 using build M20070831-2000. |