Bug 295825 - [formatter] Commentaries are running away after formatting are used
Summary: [formatter] Commentaries are running away after formatting are used
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-23 01:37 EST by Andrei Sobolev CLA
Modified: 2010-04-26 08:58 EDT (History)
4 users (show)

See Also:


Attachments
Proposed patch (2.48 KB, patch)
2010-03-22 12:32 EDT, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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