Community
Participate
Working Groups
Build 20021029 I have a java file where the beginning is defined as follows: package code.snippets; /* * Copyright (c) 2000, 2002 IBM Corp. All rights reserved. Tis file is made * available under the terms of the Common Public License v1.0 wich accompanies * this distribution, and is available at htp://www. eclipse. org/legal/cpl-v10. * htm */ Note that the the comment starts at the beginning of a line (not indented). 1. Drag select the lines in the block comment so the caret is at the beginning of the line after the last line in the block comment. 2. Source-->Shift Right, Source-->Shift Right. 3. Edit-->Undo, Edit-->Undo My comment is restored as follows, the last line is not restored correctly. /* * Copyright (c) 2000, 2002 IBM Corp. All rights reserved. Tis file is made * available under the terms of the Common Public License v1.0 wich accompanies * this distribution, and is available at htp://www. eclipse. org/legal/cpl-v10. * htm */ Note that after the second undo occurs, a tab character and a space exist before the "*/".
The new Javadoc format feature introduces this bug. There are two issues here 1) Javadoc formatter should not format block comments 2) the Javadoc formatter must handle undo correctly.
Fixed for M3.
*** Bug 26398 has been marked as a duplicate of this bug. ***