Hi Guys
Just curious to know (in as much detail as possible), why is it a bad practice to modify the object while using it as a lock.
//Assuming the lockObject is globally available
synchronized(lockObject){
lockObject.someMutativeOperation(...);
}
Cheers