Bug 44546 - New formatter unable to format
Summary: New formatter unable to format
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:
Depends on:
Blocks:
 
Reported: 2003-10-09 10:02 EDT by Philipe Mulet CLA
Modified: 2003-10-09 11:26 EDT (History)
0 users

See Also:


Attachments

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