mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-25 00:11:52 +08:00
fix: support jdk11 attach exception
This commit is contained in:
@@ -57,7 +57,17 @@ public class Attacher {
|
|||||||
Attacher.attach(args[0]);
|
Attacher.attach(args[0]);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (!e.getMessage().equals("0")) {
|
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");
|
System.out.println("ok");
|
||||||
|
|||||||
Reference in New Issue
Block a user