Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352939 - Escape misrepresented in IRs for TernaryExpressions
Summary: Escape misrepresented in IRs for TernaryExpressions
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-07-23 13:40 EDT by Scott Greer CLA
Modified: 2017-02-23 14:20 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-07-23 13:40:18 EDT
In the EGL src below, the "j" token is being encoded in the IRs with the quotes preserved:  ""j"".


EGL: 
TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(),  str matches "jja?cd*" escape "j" );

IR:
                    <arguments ID="1426" eClass="org.eclipse.edt.mof.egl.TernaryExpression" operator="matches" >
                        <annotations ID="1427" eClass="dynMof:org.eclipse.edt.mof.egl.Annotation:EGL_Location" len="i:32" off="i:11622" line="i:311" />
                        <operands ID="1428" eClass="org.eclipse.edt.mof.egl.MemberName" id="str" >
                            <annotations ID="1429" eClass="dynMof:org.eclipse.edt.mof.egl.Annotation:EGL_Location" len="i:3" off="i:11622" line="i:311" />
                            <member IDREF="1318"/>
                        </operands>
                        <operands ID="1430" eClass="org.eclipse.edt.mof.egl.StringLiteral" value="jja?cd*" isHex="false" >
                            <annotations ID="1431" eClass="dynMof:org.eclipse.edt.mof.egl.Annotation:EGL_Location" len="i:9" off="i:11634" line="i:311" />
                        </operands>
                        <operands ID="1432" eClass="org.eclipse.edt.mof.egl.StringLiteral" value="&quot;j&quot;" isHex="false" >
                            <annotations ID="1433" eClass="dynMof:org.eclipse.edt.mof.egl.Annotation:EGL_Location" len="i:32" off="i:11622" line="i:311" />
                        </operands>
                    </arguments>
Comment 1 Scott Greer CLA 2011-07-26 10:31:19 EDT
Moving to "future" since TernaryExpression is no longer targeted for 0.7.0.
Comment 2 Justin Spadea CLA 2012-04-04 16:35:19 EDT
I have a fix for this once we're ready to support LIKE/MATCHES. In egl.cup and error.cup change escapeCharacter.getCanonicalString() to escapeCharacter.getValue() in two places.
Comment 3 Justin Spadea CLA 2012-04-12 15:56:47 EDT
If we ever uncomment LIKE/MATCHES, this will work now.
Comment 4 Matt Heitz CLA 2013-01-03 10:45:51 EST
Moving old fixed bugs from the RESOLVED state to CLOSED.