On 19/11/2015 16:40, Alexandre (Shura) Iline wrote:
Yes, sorry.
Since the methods do not have any work to complete before interrupting and also
methods are not used anywhere currently, I assume re-throwing the
InterruptedException is a better choice.
http://cr.openjdk.java.net/~shurailine/8139430/webrev.07/test/lib/testlibrary/jdk/testlibrary/management/ThreadMXBeanTool.java.html
If handling InterruptedException isn't a burden in these tests then it
should be okay. Also this is probably a better anyway if you want to
give jtreg a chance to kill a test when it goes bad (say where the
target thread is looping and the waitXXX methods will not otherwise
complete).
-Alan