6714244: Plotters in MBeans tab should use SnapshotMBeanServerConnection too
authorlmalvent
Fri, 13 Jun 2008 10:45:51 +0200
changeset 699 afedf7cc9bfe
parent 697 fb86c99b92a2
child 700 b4f4e049622a
child 702 3bd5e70b2fe9
6714244: Plotters in MBeans tab should use SnapshotMBeanServerConnection too Reviewed-by: jfdenise
jdk/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java
--- a/jdk/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java	Tue Jun 10 13:50:06 2008 +0200
+++ b/jdk/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java	Fri Jun 13 10:45:51 2008 +0200
@@ -157,7 +157,7 @@
                             public void run() {
                                 try {
                                     Number n =
-                                        (Number) xmbean.getMBeanServerConnection().getAttribute(xmbean.getObjectName(), attributeName);
+                                        (Number) xmbean.getSnapshotMBeanServerConnection().getAttribute(xmbean.getObjectName(), attributeName);
                                     long v;
                                     if (n instanceof Float || n instanceof Double) {
                                         plotter.setDecimals(PLOTTER_DECIMALS);