lock for java bug using coffee diretly2