Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356204 - const NEWLINE string = "\r\n"; becomes string of whitespaces
Summary: const NEWLINE string = "\r\n"; becomes string of whitespaces
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 10:07 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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