Java concurrency confusion
===

I've following class

    class A{
    
    private int id =0;
       public void setMessageId(Message m) {
          synchronized(m) {
            m.setId(id++);
          }
       }
    }

Can two threads with same instance of class A with DIFFERENT instances of Message enter into the synchronized block at same time and set same id to different instances of message?