On Sun, 18 Jan 2026 08:35:36 GMT, Chen Liang <[email protected]> wrote:

> Ok, though ideally tests should use dedicated throws detection tools

This test is still a TestNG test, and AFAIK TestNG does not have so nice assert 
for thrown exception (it is an attribute to the `@Test` annotation). So this 
whole test is using the same pattern. My plan is to convert all tests in this 
directory to JUnit, at which point using the JUnit' `assertThrows` should be 
used.

Thanks for the review!

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

PR Comment: https://git.openjdk.org/jdk/pull/29202#issuecomment-3767141867

Reply via email to