From f2aef38d023f4f3e6406aad07d359e598c456863 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 8 Apr 2011 10:25:05 -0700 Subject: [PATCH] escape colon in process ObjectName --- bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java b/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java index 729991cb..55f23adb 100644 --- a/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java +++ b/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java @@ -82,7 +82,7 @@ public class SigarProcess implements SigarProcessMBean { public String getObjectName() throws SigarException { long pid = getPid(); - String name = this.sigar.getProcState(pid).getName(); + String name = this.sigar.getProcState(pid).getName().replaceAll(":", "_"); String cls = "unknown"; if (name.startsWith("java")) { try {