Re: Using java.util.Collections in GWT application

2011-12-27 Thread Alfredo Quiroga-Villamil
If the code you have posted is meant to run in the client, the synchronized if I am not mistaken does not apply. There are no threads there. Regards, Alfredo On Dec 27, 2011 9:38 AM, fjarenales fjarena...@gmail.com wrote: Hi folks, I'm trying to use Collections and the method

Re: Using java.util.Collections in GWT application

2011-12-27 Thread Jens
Collections.synchronizedList() is not emulated by GWT (see: http://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulation.html) Your client code runs in a single thread in the browser so there is no need for synchronizedList. -- J. -- You received this message because you are

Using java.util.Collections in GWT application

2011-12-27 Thread fjarenales
Hi folks, I'm trying to use Collections and the method synchronizedList. I have something like this: private ListUserBean myList = Collections.synchronizedList(new ArrayListUserBean()), where UserBean is a java-bean used in my application. When i try to compile this, i get the next error: The