seems to work for me - here's a little test:

  List<Integer> list = new ArrayList<Integer>();
  list.add(6);
  list.add(7);

  list.remove(0);
  list.remove(0);

after that the list is empty again.
tested in development mode with gwt 2.0.0

just a guess: make sure, you call the right function
remove is overloaded.

so if you would call:
  list.remove(new Integer(0));
then nothing would be removed, because there's no integer
object 0 in the list.

On 29 Jan., 20:04, Christian Goudreau <[email protected]>
wrote:
>  protected void removeFacultySucceeded() {
> display.removeItemFromFacultyList(display.getFacultyListSelectedIndex());
> faculties.remove(faculty);
>  if (!faculties.isEmpty()) {
> faculty = faculties.get(display.getFacultyListSelectedIndex());
> refreshDisplay();}
>
>  modification = true;
>
> }
>
> I was using the selected index instead of object faculty. While debugging I
> confirmed that the first position was 0 ans was an integer... Every other
> position was working fine.
>
> I don't understand that bug either, I've worked around by using an object.
>
> Anyway it's not that important, but I wanna know it's just me or it's
> something that should be corrected.
>
> Christian
>
> On Fri, Jan 29, 2010 at 4:23 AM, Martin Trummer 
> <[email protected]>wrote:
>
> > show some code or a small test case
>
> > On 28 Jan., 18:16, Christian Goudreau <[email protected]>
> > wrote:
> > > Does anyone had that same problem ? Everything works fine when it comes
> > to
> > > other indexes, but when I do ArrayList.remove(0), the object is still in
> > > here ! But When I try : ArrayList.remove(object), it work again.
>
> > > Everything was working well prior to GWT 2.0.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to