6714244: Plotters in MBeans tab should use SnapshotMBeanServerConnection too
Reviewed-by: jfdenise
--- 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);