changeset 365:e49bf258e60c

6714244: Plotters in MBeans tab should use SnapshotMBeanServerConnection too Reviewed-by: jfdenise
author lmalvent
date Fri, 13 Jun 2008 10:45:51 +0200
parents 7e5e83dfd285
children c06f86e01a44 ab1bc6850b6e
files src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java	Tue Jun 10 13:50:06 2008 +0200
+++ b/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);