| Summary: | Error in generated Java on resize array function | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 |
| Component: | EDT | Assignee: | Project Inbox <edt.compiler-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | mheitz, pharmon |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Paul, this is caused by that intermittent problem where TypeUtils.getTypeKind() sometimes give the wrong answer. I'm asking for the type-kind of the array's element type. In this case it should tell me String, but instead it says I'm Not Telling. Paul, in my local copy of TypeUtils I replaced the == comparisons with calls to equals(), and I haven't seen the problem since. This appears to be working now Verified in 20111101 build. |
This was working, but now I get Java error. program resize type BasicProgram{} function main() myNames string[] = ["matt", "justin", "paul"]; myNames.resize(2); end end The method resize(int, EList.ListElementFactory<? extends String>) in the type EList<String> is not applicable for the arguments (int, EList.ElementFactory<EString>)