From bf361a17329b2cd228877f38b531d565731a5fee Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 29 Apr 2009 13:09:15 -0700 Subject: [PATCH] make SigarProxyCached.invoke synchronized --- bindings/java/src/org/hyperic/sigar/SigarProxyCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/org/hyperic/sigar/SigarProxyCache.java b/bindings/java/src/org/hyperic/sigar/SigarProxyCache.java index fdefa219..9d8fc5fd 100644 --- a/bindings/java/src/org/hyperic/sigar/SigarProxyCache.java +++ b/bindings/java/src/org/hyperic/sigar/SigarProxyCache.java @@ -123,7 +123,7 @@ public class SigarProxyCache * The java.lang.reflect.InvocationHandler used by the Proxy. * This method handles caching of all Sigar type objects. */ - public Object invoke(Object proxy, Method method, Object[] args) + public synchronized Object invoke(Object proxy, Method method, Object[] args) throws SigarException, SigarNotImplementedException { SigarCacheObject cacheVal = null;