Community
Participate
Working Groups
If a block is copied with ASTNode.copySubtree where the block contains a for statement with multiple updaters the comma will be missing in the rewritten document. Looking at the source the problem is also there in CVS HEAD. One solution is to change in org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteFlattener.visit(ForStatement) something like the following: - visitList(node, ForStatement.UPDATERS_PROPERTY, null); + visitList(node, ForStatement.UPDATERS_PROPERTY, ", ");
Created attachment 38506 [details] suggested fix
Phlippe, I suggest to include this fix in RC2. Do you approve?
+1 for 3.2RC2
patch released > 20060425
Verified with I20060427-1600 for 3.2RC2 (checking the source code).