RFR: 8284993: Replace System.exit call in swing tests with RuntimeException [v3]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Wed Apr 20 10:46:02 UTC 2022


On Wed, 20 Apr 2022 10:03:10 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> I am not able to reproduce this observation. Anyway, I have added dispose in finally block
>
> It is because the test is not failing right now, you can change  `>` to `<` in `if (0 > this.test.getSelectedIndex()) {`  to fail the test.
> 
> It will still hang after latest modifications when launched with `java Test8019180.java` because of `LATCH` is still awaiting for its `countdown` (which is not called after throwing an exception).
> 
> It is not an issue if you run it with jtreg.

ok modified test.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8293



More information about the client-libs-dev mailing list