| Summary: | Generation has exception on this egl statement s1[2:3] = s2; | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
After talking to Tim, I understand the decision hasn't been made about including this assignment behavior. I'll let you decide what needs to happen to the defect. A decision was made to not allow substring on the lhs of an assignment, so this is not valid syntax to support. not supported |
Build Identifier: 0.7 EGL code longStr = "123456789"; shortStr = "abc"; longStr[2:4] = shortStr; desiredResult = "1abc56789"; SysLib.writstdout("results" + (longStr == desiredResult) ); JavaGen & JavaScript produce this error IWN.JavaGen.9998.e 0/0 Exception occurred: No such method genAssignment(org.eclipse.edt.mof.egl.impl.SubstringAccessImpl, org.eclipse.edt.gen.java.Context, org.eclipse.edt.mof.codegen.api.TabbedWriter, org.eclipse.edt.mof.egl.impl.MemberNameImpl, java.lang.String, ) for any template for Class org.eclipse.edt.mof.egl.impl.SubstringAccessImpl Reproducible: Always Steps to Reproduce: 1. write the function above 2. save the file 3.