mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
fix: support jdk11 attach exception
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user