jdk/src/share/classes/sun/tools/jconsole/LocalVirtualMachine.java
changeset 10419 12c063b39232
parent 5506 202f599c92aa
child 12851 3334e1c781d0
--- 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) {