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

Bug 354492

Summary: += doesn't work properly on function inOut string parameter
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-11 09:22:55 EDT
Works as expected when parameter is an IN. Fails for when declared INOUT ... the string value becomes only the suffix.

program appendTest type BasicProgram {}
	function main()
		data string = "incomingINOUT";
		append(data);
		data = "incomingIN";
		appendIN(data);
	end
	
	function append(str String inout)
		trace(str);
		str += "*** SUFFIX ****";
		trace(str);
	end
	
	function appendIN(str String in)
		trace(str);
		str += "*** SUFFIX ****";
		trace(str);
	end
	
	function trace(info string in)
		syslib.writeStdOut(info);
	end
end
Comment 1 Jeff Douglas CLA 2011-08-11 17:41:38 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-08-12 07:13:06 EDT
Verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:08:29 EDT
Closing this defect.