提交 74a94c50 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Do not use Thread.stop(Throwable), it does not work anyway since Java 8

上级 b90a6b22
......@@ -86,7 +86,6 @@ public class TestCrashAPI extends TestBase implements Runnable {
}
@Override
@SuppressWarnings("deprecation")
public void run() {
while (--maxWait > 0) {
try {
......@@ -103,11 +102,11 @@ public class TestCrashAPI extends TestBase implements Runnable {
if (maxWait == 0 && running) {
objects.clear();
if (running) {
println("stopping (force)...");
println("stopping (trying to interrupt)...");
for (StackTraceElement e : mainThread.getStackTrace()) {
System.out.println(e.toString());
}
mainThread.stop(new SQLException("stop"));
mainThread.interrupt();
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论