Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 513514

Summary: Eclipse Neon.2 Java Formatter Wrapping ignores Settings
Product: [Eclipse Project] JDT Reporter: Yauheniy Ratkevich <evser11>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: evser11, jarthana
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Formatter Settings none

Description Yauheniy Ratkevich CLA 2017-03-11 05:00:18 EST
Created attachment 267215 [details]
Formatter Settings

This chunk of code:

		given().
			port(port).
			body("string").
		when().
			post("/blabla").
		then().
			body("message", equalTo(getErrorMessage("exception.json.not.valid"))).
			statusCode(BAD_REQUEST_CODE);

ALWAYS transformates into this one (one line):
		given().port(port).body("string").when().post("/blabla").then().body("message", equalTo(getErrorMessage("exception.json.not.valid"))).statusCode(BAD_REQUEST_CODE);

My formatter settings in the attachment. I tried various settings, but nothing helps me.

I think, it's rather critical, because it impacts on merging code and makes conflicts.
Comment 1 Jay Arthanareeswaran CLA 2017-03-13 05:44:11 EDT
Did you close it because you crested the bug in different component? If that's the case, you can simply move this bug to a different component instead of creating a new one.
Comment 2 Yauheniy Ratkevich CLA 2017-03-13 06:03:47 EDT
(In reply to Jay Arthanareeswaran from comment #1)
> Did you close it because you crested the bug in different component? If
> that's the case, you can simply move this bug to a different component
> instead of creating a new one.

I'm sorry for the spam. I've made one mistake in configuration, that's why I deleted this bug (actually not a bug).