Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346678 - StringLiteral isHex always equals false
Summary: StringLiteral isHex always equals false
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-20 09:42 EDT by Scott Greer CLA
Modified: 2017-02-23 14:17 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-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.