Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/Mono.Android/Android.Runtime/JNIEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,7 @@ public static unsafe IntPtr NewObject (IntPtr jclass, IntPtr jmethod, params JVa

public static string GetClassNameFromInstance (IntPtr jobject)
{
IntPtr jclass = GetObjectClass (jobject);
try {
return Java.Interop.TypeManager.GetClassName (jclass);
} finally {
DeleteLocalRef (jclass);
}
return JniEnvironment.Types.GetJniTypeNameFromInstance (new JniObjectReference (jobject));
}

[MethodImplAttribute(MethodImplOptions.InternalCall)]
Expand Down
Loading