| Summary: | ClassCastException on call statement | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 |
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | greer, hjiyong, jqian, jvincens, mheitz, pharmon, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Programs aren't supported in JS, so Matt suggested assigning this to Compiler since this should be an error detected in validation. JavaScript generator should ignore parts (like programs) that it doesnt support and simply not generate anything for them. I am reassigning this back to JS gen. defer to future, since we do not support called program in 070 js gen should issue meaningful message at generation time validation added to disallow calling a program Moving old fixed bugs from the RESOLVED state to CLOSED. |
Build Identifier: 20110912 Get the following errors on call myProgram(myCustomer, interestRate); Multiple markers at this line - IWN.JavascriptGen.9998.e 9/139 Exception occurred: java.lang.ClassCastException: org.eclipse.edt.mof.egl.impl.PartNameImpl cannot be cast to org.eclipse.edt.mof.egl.MemberAccess - IWN.JavascriptGen.9999.e 9/139 Stack Trace: java.lang.ClassCastException: org.eclipse.edt.mof.egl.impl.PartNameImpl cannot be cast to org.eclipse.edt.mof.egl.MemberAccess program callPgm type BasicProgram {} myCustomer string; interestRate decimal(2); function main() call myProgram(myCustomer, interestRate); end end program myProgram (myCustomer string, interestRate decimal(4)) function main() sysLib.writeStdout("Got here"); end end Reproducible: Always