Bug 202465 - [formatter] Successive formatting continue to modify the file
Summary: [formatter] Successive formatting continue to modify the file
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 RC4   Edit
Assignee: Eric Jodet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-06 10:36 EDT by David Audel CLA
Modified: 2008-06-06 09:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2007-09-06 10:36:07 EDT
build I20070904-0800

1) create Test.java
public class Test {
	/**
	 * bla
	 * 
	 * 
	 * 
	 *  ""
	 */
	public int foo() {
		return 0;
	}
}

2) format the whole file

One "blank line" inside the javadoc is removed.

3) format the file another time

Another "blank line" is removed

One line is removed each time that the file is formatted
At the end the file look like

public class Test {
	/**
	 * bla ""
	 */
	public int foo() {
		return 0;
	}
}

I don't know how this example should be formatted but only one call to the formatter should be necessary to correctly format this example.
Comment 1 Eric Jodet CLA 2008-06-06 03:24:14 EDT
David,
using build I20080603-2000, the given javadoc seems to be formatted as expected.
The new formatter (see bug 102780) seems to behave better.
May you please have another try using a recent build?
Comment 2 David Audel CLA 2008-06-06 04:04:13 EDT
I do not reproduce the bug with build I20080603-2000.
Comment 3 Eric Jodet CLA 2008-06-06 04:16:15 EDT
(In reply to comment #2)
closing as WORKSFORME
Comment 4 Frederic Fusier CLA 2008-06-06 09:09:53 EDT
(In reply to comment #2)
> I do not reproduce the bug with build I20080603-2000.
> 
=> verified for 3.4RC4 using I20080603-2000