Bug 241653 - Surround with Runnable forgets semicolon
Summary: Surround with Runnable forgets semicolon
Status: RESOLVED DUPLICATE of bug 140584
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 08:55 EDT by Benjamin Muskalla CLA
Modified: 2008-07-22 09:11 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 Benjamin Muskalla CLA 2008-07-22 08:55:01 EDT
N20080719-2000

Use the following code, select the Sysout and do a "Surround with runnable":

public class X {
	public static void main(String[] args) {
		new Object() {
			void method() {
				System.out.println("");
			}
		};
	}
}

Current result:
public class X {
	public static void main(String[] args) {
		new Object() {
			void method() {
				new Runnable() {
					public void run() {
						System.out.println("");
					}
				}
			}
		};
	}
}

There is a semicolon missing in line 9
Comment 1 Markus Keller CLA 2008-07-22 09:11:42 EDT

*** This bug has been marked as a duplicate of bug 140584 ***