Possible Duplicate:
Synchronization of non-final field
I have an arrayList and when i use this:
//declare it as a global ArrayList
private ArrayList <Human> myList = new ArrayList <Human>() ;
//inside a method
synchronized (myList){
for( ListIterator<Human> it = myList.listIterator();it.hasNext();){
Human = it.next();
it tells me Synchronization on non-final field. what should i do?