Skip to content

Commit b754516

Browse files
committed
[Java.Interop-Tests] Fix JniPeerMembers construction.
Oops; the JniPeerMembers managedPeerType is supposed to be the declaring type -- the type that has the JniPeerMembers instance. In this case that wasn't true -- CallNonvirtualDerived was using CallNonvirtualBase as the managedPeerType. Doh! (I wonder if there's a way to check/assert for this...)
1 parent f6ae80f commit b754516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Java.Interop/Tests/Java.Interop/CallNonvirtualDerived.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class CallNonvirtualDerived : CallNonvirtualBase
99
{
1010
internal new const string JniTypeName = "com/xamarin/interop/CallNonvirtualDerived";
1111

12-
readonly static JniPeerMembers _members = new JniPeerMembers (JniTypeName, typeof (CallNonvirtualBase));
12+
readonly static JniPeerMembers _members = new JniPeerMembers (JniTypeName, typeof (CallNonvirtualDerived));
1313

1414
public override JniPeerMembers JniPeerMembers {
1515
get {return _members;}

0 commit comments

Comments
 (0)