Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358300

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: EDTAssignee: 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 CLA 2011-09-20 16:11:22 EDT

    
Comment 1 Jeff Douglas CLA 2011-09-20 16:15:05 EDT
What is this supposed to mean?
Comment 2 broy2 CLA 2011-09-20 16:16:54 EDT
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>)
Comment 3 Jeff Douglas CLA 2011-09-20 16:57:00 EDT
fixed
Comment 4 broy2 CLA 2011-09-21 10:35:13 EDT
Verified in 20110921 build.