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

Bug 356204

Summary: const NEWLINE string = "\r\n"; becomes string of whitespaces
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-30 10:07:36 EDT
Both Java and JavaScript incorrectly set the value of NEWLINE to spaces.

EDT
program driver type BasicProgram {}
	const NEWLINE string = "\r\n";
	function main()
		mytest string = "simple text";
		mytest += NEWLINE + "start next line";
		syslib.writestdout(mytest);
	end
end

Java
	private static final long serialVersionUID = 10L;
	private static final String ezeConst_NEWLINE = "      ";
	public final String NEWLINE = ezeConst_NEWLINE;

JS
			try { egl.enter("<init>",this,arguments);
				egl.atLine(this.eze$$fileName,5,72,6, this);
				this.NEWLINE = "      ";
Comment 1 Paul Harmon CLA 2011-10-25 13:33:44 EDT
The XMLSerializer class has been updated to fix this
Comment 2 Kathy Carroll CLA 2011-10-27 17:34:43 EDT
verified with build 20111027_1153 & closed