Added 'synthetic' flag for bridge method.

#KT-3155 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-12-13 14:33:08 +04:00
parent e324d3914f
commit b8eb0c84ff
6 changed files with 27 additions and 1 deletions
@@ -743,7 +743,7 @@ public class FunctionCodegen extends GenerationStateAware {
FunctionDescriptor functionDescriptor,
Method overridden
) {
int flags = ACC_PUBLIC | ACC_BRIDGE; // TODO.
int flags = ACC_PUBLIC | ACC_BRIDGE | ACC_SYNTHETIC; // TODO.
final MethodVisitor mv = v.newMethod(null, flags, jvmSignature.getName(), overridden.getDescriptor(), null, null);
if (state.getClassBuilderMode() == ClassBuilderMode.STUBS) {