Bug 44546

Summary: New formatter unable to format
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2003-10-09 10:02:49 EDT
Build 20031008

Following source remains unchanged by formatter:

public class X {
	public static void main(String[] args) {
		new X().bar();
	}
	public void bar() {
		class C extends X {
			public void foo() {
			System.out.println("SUCCESS");

			}
		}
		class D extends C {
					D(){X.this.super();}
		}
		new D().foo();
	}
}
Comment 1 Philipe Mulet CLA 2003-10-09 10:03:19 EDT
From the log:

!ENTRY org.eclipse.jdt.ui 4 10001 Oct 09, 2003 15:56:55.885
!MESSAGE formatter failed to format (no edit returned). Will use unformatted 
text instead. kind: 8, string: public class X {
        public static void main(String[] args) {
                new X().bar();
        }
        public void bar() {
                class C extends X {
                        public void foo() {
                        System.out.println("SUCCESS");

                        }
                }
                class D extends C {
                        D(){X.this.super();}
                }
                new D().foo();
        }
}
Comment 2 Olivier Thomann CLA 2003-10-09 10:06:03 EDT
I am investigating.
Comment 3 Olivier Thomann CLA 2003-10-09 10:36:35 EDT
I didn't consume the '.' after X.this.
Fixed and released in HEAD.
Regression test added.