fix: support jdk11 attach exception

This commit is contained in:
ReaJason
2025-09-12 22:51:50 +08:00
parent a5fb75b3f0
commit cb3914152f
@@ -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");