fix: support jdk11 attach exception

This commit is contained in:
ReaJason
2025-08-31 17:44:58 +08:00
parent 898a18d222
commit 9190a87ab4
@@ -57,7 +57,17 @@ public class Attacher {
Attacher.attach(args[0]);
} catch (Exception e) {
if (!e.getMessage().equals("0")) {
throw e;
Throwable cause = e.getCause();
if (cause != null) {
if (!cause.getMessage().equals("0")) {
cause = e.getCause();
if (cause != null) {
if (!cause.getMessage().equals("0")) {
throw e;
}
}
}
}
}
}
System.out.println("ok");