Does the EDT restart or not when an exception is thrown?

前端 未结 3 537
北荒
北荒 2020-12-06 05:59

(the example code below is self-contained and runnable, you can try it, it won\'t crash your system :)

Tom Hawtin commented on the question here: Why do peo

3条回答
  •  盖世英雄少女心
    2020-12-06 06:25

    For reference, "The particular behavior of this machinery is implementation-dependent." For example, the thread ID remains unchanged on my platform. The net effect, discussed in AWT Threading Issues, is that "the JVM will not exit while there is at least one displayable component."

提交回复
热议问题