Java happens-before relationship invokeAndWait
问题 My question is related to this question, which already has an answer: yes, there is a happens-before relationship imposed between actions of the thread calling invokeLater / invokeAndWait and actions on the EDT of the runnable thereby submitted. My question is a bit more general: Is it even possible to implement a method, such as invokeAndWait , such that it works properly , but not imposing a happens-before relationship? By the method working properly I mean the following: The submitted