Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358300 - Error in generated Java on array initialization: myIntArray int[][] { [ 1,2], [3,4,5], [6,7,8,9] } ;
Summary: Error in generated Java on array initialization: myIntArray int[][] { [ 1,2],...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 16:11 EDT by broy2 CLA
Modified: 2017-02-23 14:16 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.