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

Bug 347208

Summary: IRs incorrectly store string literals with control chars.
Product: z_Archived Reporter: Scott Greer <greer>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mheitz, pharmon, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Scott Greer CLA 2011-05-25 14:19:57 EDT
This EGL source

results.variation = "Assign to string #2";          
s = " z dsf  lkjlkj   slfkjeojcn9893n l9non lfdp9jpnk l9j 0n ;in09 noin   \b\f\n\r\t\\\"   !";  
TestUILib.reportStatus( jsLib.getFile(), jsLib.getLine(), checkString( s, " z dsf  lkjlkj   slfkjeojcn9893n l9non lfdp9jpnk l9j 0n ;in09 noin   \b\f\n\r\t\\\"   !", 80 ) );

doesn't generate correctly in either Java or JavaScript because the control chars present in these string literals are either missing / incorrectly represented in the IR:

					<RHS ID="272" eClass="org.eclipse.edt.mof.egl.StringLiteral" value=" z dsf  lkjlkj   slfkjeojcn9893n l9non lfdp9jpnk l9j 0n ;in09 noin
					\\&quot;   !" isHex="false" >


						<arguments ID="292" eClass="org.eclipse.edt.mof.egl.StringLiteral" value=" z dsf  lkjlkj   slfkjeojcn9893n l9non lfdp9jpnk l9j 0n ;in09 noin
						\\&quot;   !" isHex="false" >
Comment 1 Paul Harmon CLA 2012-03-12 15:51:51 EDT
this has been fixed (for some time)
Comment 2 Lisa Lasher CLA 2012-04-04 22:36:07 EDT
closing defect