Bug 86908

Summary: Code formatter fails to format when this code is present
Product: [Eclipse Project] JDT Reporter: John Kelly <john>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1   
Target Milestone: 3.1 M6   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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