--- a/jdk/src/share/classes/sun/tools/jconsole/LocalVirtualMachine.java Tue Aug 30 14:41:12 2011 +0100
+++ b/jdk/src/share/classes/sun/tools/jconsole/LocalVirtualMachine.java Tue Aug 30 11:53:11 2011 -0700
@@ -135,10 +135,8 @@
try {
host = MonitoredHost.getMonitoredHost(new HostIdentifier((String)null));
vms = host.activeVms();
- } catch (java.net.URISyntaxException sx) {
- throw new InternalError(sx.getMessage());
- } catch (MonitorException mx) {
- throw new InternalError(mx.getMessage());
+ } catch (java.net.URISyntaxException | MonitorException x) {
+ throw new InternalError(x.getMessage(), x);
}
for (Object vmid: vms) {
if (vmid instanceof Integer) {