Summary: | NaiveASTFlattener incorrectly renders a for statement with multiple initializers or multiple updaters | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Cok <david.cok> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.2 M1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
David Cok
2005-07-26 13:37:11 EDT
Fixed and released in HEAD. Regression test added in org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test0614. Note that this is for debug purpose only. You should not use the result of toString() on a ASTNode to serialize your DOM compilation unit. To do that, you should use the rewrite infrastructure. Verified with I20050808-2000 that the rendering contains the semi-colons. It still contains extra spaces, but as Olivier said the toString() is for debugging purpose only. |