Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347208 - IRs incorrectly store string literals with control chars.
Summary: IRs incorrectly store string literals with control chars.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 14:19 EDT by Scott Greer CLA
Modified: 2017-02-23 14:19 EST (History)
3 users (show)

See Also:


Attachments

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