Bug 40777 - Incorrect formatting for anonymous inner class with comment
Summary: Incorrect formatting for anonymous inner class with comment
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 40996 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-25 11:01 EDT by John Arthorne CLA
Modified: 2003-10-14 07:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2003-07-25 11:01:31 EDT
Build: 3.0 M2.

The following JCU has been formatted incorrectly by the JDT formatter.  If the
NON-NLS comment is removed, it is formatted correctly.

public class A {
	A(String s) {
	}
	protected void foo() {
			A a = new A("") {//$NON-NLS-1$
	public void run() {
			}
		}
	}
}
Comment 1 Olivier Thomann CLA 2003-07-31 08:52:30 EDT
*** Bug 40996 has been marked as a duplicate of this bug. ***
Comment 2 Olivier Thomann CLA 2003-10-03 10:36:31 EDT
This is addressed in the new formatter.
Fixed and released in HEAD.
Regression test added.
Comment 3 David Audel CLA 2003-10-14 07:28:19 EDT
Verified.