Bug 295825

Summary: [formatter] Commentaries are running away after formatting are used
Product: [Eclipse Project] JDT Reporter: Andrei Sobolev <andrei.sobolev>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: frederic_fusier, jarthana, markus.kell.r, satyam.kandula
Version: 3.5.1   
Target Milestone: 3.6 M7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Andrei Sobolev CLA 2009-11-23 01:37:20 EST
If I do auto formatting for following class:

public class A {
	/* * command */
	void method() {

	}
}

I've see what commentary are running each time for 1 space symbol.

This is same class after 10 calls for Ctrl+F
public class A {
	/*           * command */
	void method() {

	}
}
Comment 1 Markus Keller CLA 2009-11-23 06:34:51 EST
I can also reproduce in I20091118-1342.
Comment 2 Frederic Fusier CLA 2010-03-22 12:32:26 EDT
Created attachment 162693 [details]
Proposed patch
Comment 3 Frederic Fusier CLA 2010-03-22 12:34:10 EDT
(In reply to comment #2)
> Created an attachment (id=162693) [details]
> Proposed patch

Released for 3.6M7 in HEAD stream.
Comment 4 Satyam Kandula CLA 2010-04-26 04:49:41 EDT
Verified for 3.6M7 using build I20100424-2000