On Fri, 25 Mar 2022 21:35:49 GMT, Phil Race <p...@openjdk.org> wrote:
>> lawrence.andrews has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fixed the review comments and fixed the test using PassFailJFrame.java > > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 76: > >> 74: System.out.println(f.getTitle() + " is getting disposed"); >> 75: f.dispose(); >> 76: } > > Same here for invokeAndWait ? > You just need to document that these shouldn't be called on the EDT .. > in fact you need to document the threading regardless. > > Mind you I am not sure this code should be destroying all frames. > It is a non-obvious side effect .. Added the documentation. ------------- PR: https://git.openjdk.java.net/jdk/pull/7966