Skip to content

Commit a56af53

Browse files
committed
NH-3755 - Fix overrides of members with the same names
1 parent 3c1f4a1 commit a56af53

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/NHibernate.Test/NHSpecificTest/NH3755/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected override void OnTearDown()
4242
}
4343
}
4444

45-
[Test, KnownBug("NH-3755")]
45+
[Test]
4646
public void TestCompositeProxy()
4747
{
4848
using (var session = OpenSession())

src/NHibernate/Proxy/DynamicProxy/DefaultProxyMethodBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ public void CreateProxiedMethod(FieldInfo field, MethodInfo method, TypeBuilder
141141
var proxyMethod = GenerateMethodSignature(method.Name, method, typeBuilder);
142142

143143
MethodBodyEmitter.EmitMethodBody(proxyMethod, callbackMethod, method, field);
144+
145+
typeBuilder.DefineMethodOverride(proxyMethod, method);
144146
}
145147
}
146148
}

0 commit comments

Comments
 (0)