From 5cc7284f993d5156b9b0d7f7be386a485ad053ab Mon Sep 17 00:00:00 2001 From: kkhan Date: Wed, 12 Jul 2006 16:19:30 +0000 Subject: [PATCH] Do not proxy volatile methods git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@288 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/util/proxy/ProxyFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java index 9ce9f147..19321e61 100644 --- a/src/main/javassist/util/proxy/ProxyFactory.java +++ b/src/main/javassist/util/proxy/ProxyFactory.java @@ -417,6 +417,8 @@ public class ProxyFactory { * @param mod the modifiers of the method. */ private static boolean isVisible(int mod, String from, Member meth) { + if ((mod & Modifier.VOLATILE) != 0) + return false; if ((mod & Modifier.PRIVATE) != 0) return false; else if ((mod & (Modifier.PUBLIC | Modifier.PROTECTED)) != 0) -- 2.39.5