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

Bug 354376

Summary: List functions are missing from Java runtime
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Jeff Douglas <jeffdouglas>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-10 09:29:41 EDT
EGL CODE

package explore;
library tester {}
	function getSizeTest()
		myList string[] = ["Red", "Blue", "Green"];
		size int = myList.getSize();
		Syslib.writeStdOut(size);
	end
end

Java Error
   The method getSize() is undefined for the type EglList<String>

Java Code
	public void getSizeTest() {
		egl.lang.EglList<String> myList = null;
		myList = EglAny.ezeCast(new EglList<String>(3).ezeSet(1, EString.ezeCast("Red")).ezeSet(2, EString.ezeCast("Blue")).ezeSet(3, EString.ezeCast("Green")), EglList.class);
		int size = 0;
		size = myList.getSize();
		String eze$Temp1 = Constants.EMPTY_STRING;
		eze$Temp1 = EString.asString(size);
		SysLib.writeStdout(eze$Temp1);
	}
Comment 1 Matt Heitz CLA 2011-08-11 12:15:01 EDT
Many methods are missing from the runtime's EglList class.  I added getSize and removeAll but several more are needed so I'm keeping this bug open and changing the description.
Comment 2 Jeff Douglas CLA 2011-08-11 15:29:02 EDT
fixed
Comment 3 Kathy Carroll CLA 2011-08-12 07:40:47 EDT
Verified getSize();  Will change defect status once testcase for List is written
Comment 4 Kathy Carroll CLA 2011-10-12 14:26:21 EDT
Verified 201110120952.  assuming er covers list testing