Browse Source

Do not proxy volatile methods


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@288 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
kkhan 18 years ago
parent
commit
5cc7284f99
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/main/javassist/util/proxy/ProxyFactory.java

+ 2
- 0
src/main/javassist/util/proxy/ProxyFactory.java View File

@@ -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)

Loading…
Cancel
Save