| Summary: | Java compile error using ::= operand to append element to record list | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
fixed Verified Closing this defect. |
EGL Code ============== package explore; library tester {} function persistResult(name string, pkgName string, resultRootSum ResultSummaryRoot) //append the test case summary to result root summary resultSum ResultSummary; resultSum.name = name; resultSum.pkgName = pkgName; resultRootSum.trSummary ::= resultSum; end end Record ResultSummary pkgName String {@XMLAttribute{}}; //package name name String{@XMLAttribute{}}; //test library part name end Record ResultSummaryRoot trSummary ResultSummary[]{}; end ================ package explore; program driver type BasicProgram {} use tester; function main() resultRootSum ResultSummaryRoot; persistResult("Name 1", "PkgName 1", resultRootSum); persistResult("Name 2", "PkgName 2", resultRootSum); syslib.writeStdOut("done"); end end ======================= Java error msg The operator += is undefined for the argument type(s) EglList<ResultSummary>, AnyBoxedObject<ResultSummary> Java code: ResultSummary resultSum = new ResultSummary(); resultSum.name = name.ezeUnbox(); resultSum.pkgName = pkgName.ezeUnbox(); resultRootSum.trSummary += EglAny.ezeBox(resultSum);