diff options
author | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-12 16:19:30 +0000 |
---|---|---|
committer | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-12 16:19:30 +0000 |
commit | 5cc7284f993d5156b9b0d7f7be386a485ad053ab (patch) | |
tree | 999b6d7fe37f09322c7a4c9ed93f2e2423d96ad4 | |
parent | f169c3588278fbd47dc7f432d21de9e3a5a0df57 (diff) | |
download | javassist-5cc7284f993d5156b9b0d7f7be386a485ad053ab.tar.gz javassist-5cc7284f993d5156b9b0d7f7be386a485ad053ab.zip |
Do not proxy volatile methods
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@288 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/util/proxy/ProxyFactory.java | 2 |
1 files changed, 2 insertions, 0 deletions
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) |