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

Bug 346678

Summary: StringLiteral isHex always equals false
Product: z_Archived Reporter: Scott Greer <greer>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: lasher, mheitz, pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Scott Greer CLA 2011-05-20 09:42:00 EDT
Given this EGL statement, 

		ux string[12] = 
		[	
			UX"00FC0075005500750075",
			UX"003F003F003F003F003F",
			UX"00B700B700B700B700B7",
			UX"00310031003100310031",
			UX"000A000A000A000A0042", //newline
			UX"000D000D000D000D0042", //carriage return
			UX"00220022002200220022", //double quote
			UX"005C005C005C005C005C", //backslash: oneven number of backslashes escapes the terminating double quote in java
			UX"00A800A800A800A80022", //0022: double quote
			UX"02DD02DD02DD02DD0022", //0022: double quote
			UX"201C201C201C201C0022", //double quote
			UX"201D201D201D201D0022"  //double quote
		];		


the isHex attribute of the StringLiteral isn't being set -- it's always false, e.g.:

<entries ID="325" eClass="org.eclipse.edt.mof.egl.StringLiteral" value="00FC0075005500750075" isHex="false" >
											<annotations ID="326" eClass="dynMof:org.eclipse.edt.mof.egl.Annotation:EGL_Location" len="i:24" off="i:1692" line="i:55" />
										</entries>
Comment 1 Paul Harmon CLA 2011-07-18 11:48:50 EDT
I have update EGL2MofExpression to set the hex flags on the text type literals.
Comment 2 Scott Greer CLA 2011-07-30 14:21:14 EDT
Verified fix.