| Summary: | Error in generated Java on array initialization: myIntArray int[][] { [ 1,2], [3,4,5], [6,7,8,9] } ; | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 |
| 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: | |||
|
Description
broy2
What is this supposed to mean? 20110920 build.
There are errors in the generated Java for the following program:
program pgm type BasicProgram {}
myIntArray int[][] { [ 1,2], [3,4,5], [6,7,8,9] } ;
function main()
sysLib.writeStdout(myIntArray[2][3]);
end
end
myIntArray = new EglList<egl.lang.EglList<Integer>>();
myIntArray.appendElement(new EglList<java.lang.Short>(2).ezeSet(1, (short) 1).ezeSet(2, (short) 2));
myIntArray.appendElement(new EglList<java.lang.Short>(3).ezeSet(1, (short) 3).ezeSet(2, (short) 4).ezeSet(3, (short) 5));
myIntArray.appendElement(new EglList<java.lang.Short>(4).ezeSet(1, (short) 6).ezeSet(2, (short) 7).ezeSet(3, (short) 8).ezeSet(4, (short) 9));
The method appendElement(EglList<Integer>) in the type EglList<EglList<Integer>> is not applicable for the arguments (EglList<Short>)
The method appendElement(EglList<Integer>) in the type EglList<EglList<Integer>> is not applicable for the arguments (EglList<Short>)
The method appendElement(EglList<Integer>) in the type EglList<EglList<Integer>> is not applicable for the arguments (EglList<Short>)
fixed Verified in 20110921 build. |