RFR: 8345144: Robot does not specify all causes of IllegalThreadStateException
Alexander Zvegintsev
azvegint at openjdk.org
Tue Dec 10 13:40:39 UTC 2024
On Mon, 9 Dec 2024 20:47:07 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
> ```
> public void delay(int ms) {
> if (isEventDispatchThread()) {
> throw new IllegalThreadStateException("delay() called on EDT");
> }
> ```
There is already a `checkNotDispatchThread` method, so we can reuse it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22564#issuecomment-2531663053
More information about the client-libs-dev
mailing list