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

Bug 354750

Summary: Implement arrays as java.util.List objects, not our EglLists
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Matt Heitz <mheitz>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jeffdouglas, jspadea, jvincens, lasher
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt Heitz CLA 2011-08-15 14:33:09 EDT
This will allow for much better interoperability between generated and handwritten code.

The interface for an array should be java.util.List.  The implementation class should be java.util.ArrayList.

Delete the runtime's egl.lang.EglList interface.  Keep org.eclipse.edt.runtime.java.egl.lang.EglList, but it should only contain static methods which implement the functions of EglList.

The first argument to those static methods will be the array.  They should throw a NullValueException if the array is null.
Comment 1 Jeff Douglas CLA 2011-08-16 08:43:19 EDT
can't implement it this way because the list needs to carry around a maxsize value, which would be lost
Comment 2 Lisa Lasher CLA 2011-08-26 17:53:16 EDT
changing to Enhancement, as this isn't really a defect.
Comment 3 Matt Heitz CLA 2011-09-07 17:38:39 EDT
Since maxSize has bitten the dust, the enhancement is now possible.
Comment 4 Matt Heitz CLA 2011-09-08 13:34:02 EDT
We need to let Justin know when we make this change, so he can update the debugger.
Comment 5 Matt Heitz CLA 2011-09-09 12:43:15 EDT
Adding Justin to the CC list so he'll know when we make this change.
Comment 6 Matt Heitz CLA 2011-10-04 17:05:28 EDT
The work is complete.
Comment 7 Matt Heitz CLA 2011-11-01 10:41:51 EDT
Verified.