Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 440620 - [1.8][Code Formatter] Auto formatter goes wrong with one line comments inside lambda expressions
Summary: [1.8][Code Formatter] Auto formatter goes wrong with one line comments inside...
Status: CLOSED DUPLICATE of bug 433177
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 04:51 EDT by Mikhail Fedorov CLA
Modified: 2014-07-29 05: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 Mikhail Fedorov CLA 2014-07-29 04:51:55 EDT
public void testFormat() {

		Thread t = new Thread(() -> {

			Thread t3 = new Thread(() -> {

			});

			// problem
				Thread t2 = new Thread(() -> {

				});

			});

	}

	public void testFormat() {

		Thread t = new Thread(() -> {

			System.out.println("");
			//
				System.out.println("");
			});

	}


Eclipse Luna 4.4. With this code auto-formatter goes wrong. after removal of the comment everything is ok.
Comment 1 Martin Mathew CLA 2014-07-29 05:28:45 EDT

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