Delegated members should not be synthetic

Otherwise they are invisible to Java code
This commit is contained in:
Andrey Breslav
2014-01-23 10:21:03 +04:00
parent ec3eee133f
commit 39234b4d3e
4 changed files with 24 additions and 1 deletions
@@ -737,7 +737,7 @@ public class FunctionCodegen extends ParentCodegenAwareImpl {
Method overriddenMethod = jvmOverriddenMethodSignature.getAsmMethod();
Method delegateMethod = jvmDelegateMethodSignature.getAsmMethod();
int flags = ACC_PUBLIC | ACC_SYNTHETIC; // TODO.
int flags = ACC_PUBLIC;
MethodVisitor mv = v.newMethod(null, flags, delegateMethod.getName(), delegateMethod.getDescriptor(), null, null);
if (state.getClassBuilderMode() != ClassBuilderMode.FULL) return;