Bug 86908 - Code formatter fails to format when this code is present
Summary: Code formatter fails to format when this code is present
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-01 10:57 EST by John Kelly CLA
Modified: 2005-03-30 23:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Kelly CLA 2005-03-01 10:57:31 EST
When I have a file with the following method, the code formatter will not format
it. There are no errors in the log:

	private static String buildStartTag(String namespace, String serviceName)
	{
		return " <ns1:" + serviceName +
			(" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/" +
			"soap/encoding/\" xmlns:ns1=\"") + namespace + "\">\n";
	}

When I remove the parentheses, the code formatter works fine, and it reformats
the complete file.

	private static String buildStartTag(String namespace, String serviceName)
	{
		return " <ns1:" + serviceName +
			" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/" +
			"soap/encoding/\" xmlns:ns1=\"" + namespace + "\">\n";
	}
Comment 1 Olivier Thomann CLA 2005-03-07 12:51:15 EST
Fixed and released in HEAD.
Regression test added in FormatterRegressionTests.test546.
Comment 2 Olivier Thomann CLA 2005-03-30 23:18:06 EST
Verified in 20050330-0500