aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/util/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/util/proxy')
-rw-r--r--src/main/javassist/util/proxy/ProxyFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java
index 19321e61..bf29e539 100644
--- a/src/main/javassist/util/proxy/ProxyFactory.java
+++ b/src/main/javassist/util/proxy/ProxyFactory.java
@@ -363,6 +363,8 @@ public class ProxyFactory {
else {
MethodInfo delegator
= makeDelegator(meth, desc, cp, declClass, delegatorName);
+ // delegator is not a bridge method. See Sec. 15.12.4.5 of JLS 3rd Ed.
+ delegator.setAccessFlags(delegator.getAccessFlags() & ~AccessFlag.BRIDGE);
cf.addMethod(delegator);
}
@@ -417,8 +419,6 @@ 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)