mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Throw AssertionError when URISyntaxException happens at findTargetProcessTmpDirectory()
This commit is contained in:
parent
c9051cde66
commit
8f11d43ba2
@ -296,7 +296,13 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
|
|||||||
}
|
}
|
||||||
// Throw original IOE if target process not found on localhost.
|
// Throw original IOE if target process not found on localhost.
|
||||||
throw ioe;
|
throw ioe;
|
||||||
} catch (MonitorException | URISyntaxException e) {
|
} catch (URISyntaxException e) {
|
||||||
|
// URISyntaxException is defined as a checked exception at
|
||||||
|
// MonitoredHost.getMonitoredHost() if the URI string poorly
|
||||||
|
// formed. However "//localhost" is hard-coded at here, so the
|
||||||
|
// exception should not happen.
|
||||||
|
throw new AssertionError("Unexpected exception", e);
|
||||||
|
} catch (MonitorException e) {
|
||||||
// Other exceptions (happened at MonitoredHost) would be wrapped with AttachOperationFailedException
|
// Other exceptions (happened at MonitoredHost) would be wrapped with AttachOperationFailedException
|
||||||
throw new AttachOperationFailedException("Unable to find target proces", e);
|
throw new AttachOperationFailedException("Unable to find target proces", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user