You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Java.Interop-Tests/Java.Interop/JniPeerMembersTests.cs
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,38 @@ public void ReplaceInstanceMethodWithStaticMethod ()
108
108
// Shouldn't throw; should instead invoke ObjectHelper.getHashCodeHelper(Object)
109
109
o.remappedToStaticHashCode();
110
110
}
111
+
112
+
#if !__ANDROID__
113
+
// Note: this test looks up a static method from one class, then
114
+
// calls `JNIEnv::CallStaticObjectMethod()` passing in a jclass
115
+
// for a *different* class.
116
+
//
117
+
// This appears to work on Desktop JVM.
118
+
//
119
+
// On Android, this will ABORT the app:
120
+
// JNI DETECTED ERROR IN APPLICATION: can't call static int com.xamarin.interop.DesugarAndroidInterface$_CC.getClassName() with class java.lang.Class<com.xamarin.interop.AndroidInterface>
121
+
// in call to CallStaticObjectMethodA
122
+
//
123
+
// *Fascinating* the differences that can appear between JVM implementations
0 commit comments