Bug 15726 moves field comments from one field to another [quick fix]
20020508 public class A { int field; //field comment A(int fred){ _fred= fred; } } you are offered to create field _fred but then it steals the comment: int field; private int _fred; //field comment
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java
statements.add(caseStatement1);
			
			Statement statement1= ast.newReturnStatement();
			rewrite.markAsInserted(statement1);
			statements.add(statement1);
			
			SwitchCase caseStatement2= ast.newSwitchCase(); 
			caseStatement2.setExpression(null);
			rewrite.markAsInserted(caseStatement2);
			statements.add(caseStatement2);
		}
		
		{ 
			SwitchStatement switchStatement= (SwitchStatement) blockStatements.get(1);
			
			List statements= switchStatement.statements();
			assertTrue("Number of statements not 8", statements.size() == 8);
			
			
			
			if (BUG_23259) {
				System.out.println(getClass().getName()+"::" + getName() +" limited (bug 23259)");
			} else {
			rewrite.markAsRemoved((ASTNode) statements.get(0));
			rewrite.markAsRemoved((ASTNode) statements.get(1));
			rewrite.markAsRemoved((ASTNode) statements.get(2));
			}
			
			
			SwitchCase caseStatement= (SwitchCase) statements.get(3);