Bug 40777

Summary: Incorrect formatting for anonymous inner class with comment
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: preuss
Version: 3.0   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.