Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354376 - List functions are missing from Java runtime
Summary: List functions are missing from Java runtime
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: Jeff Douglas CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 09:29 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:17 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 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