ICALL_TYPE(OBJ, "System.Object", OBJ_1)
HANDLES(OBJ_1, "GetType", ves_icall_System_Object_GetType, MonoReflectionType, 1, (MonoObject))
-ICALL(OBJ_2, "InternalGetHashCode", mono_object_hash_internal)
HANDLES(OBJ_3, "MemberwiseClone", ves_icall_System_Object_MemberwiseClone, MonoObject, 1, (MonoObject))
ICALL_TYPE(ASSEM, "System.Reflection.Assembly", ASSEM_2)
HANDLES(RUNH_1, "GetObjectValue", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetObjectValue, MonoObject, 1, (MonoObject))
HANDLES(RUNH_2, "GetUninitializedObjectInternal", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetUninitializedObjectInternal, MonoObject, 1, (MonoType_ptr))
HANDLES(RUNH_3, "InitializeArray", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray, void, 2, (MonoArray, MonoClassField_ptr))
+ICALL(RUNH_7, "InternalGetHashCode", mono_object_hash_internal)
HANDLES(RUNH_3a, "PrepareMethod", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_PrepareMethod, void, 3, (MonoMethod_ptr, gpointer, int))
HANDLES(RUNH_4, "RunClassConstructor", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor, void, 1, (MonoType_ptr))
HANDLES(RUNH_5, "RunModuleConstructor", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunModuleConstructor, void, 1, (MonoImage_ptr))
mono_reflection_free_type_info (&info);
mono_error_cleanup (parse_error);
if (throwOnError) {
+#if ENABLE_NETCORE
+ mono_error_set_argument (error, "typeName@0", "failed to parse the type");
+#else
mono_error_set_argument (error, "typeName", "failed to parse the type");
+#endif
goto fail;
}
/*g_print ("failed parse\n");*/
if (ok) {
mono_identifier_unescape_info (info);
} else {
+#if ENABLE_NETCORE
+ mono_error_set_argument_format (error, "typeName@0", "failed parse: %s", name);
+#else
mono_error_set_argument_format (error, "typeName", "failed parse: %s", name);
+#endif
}
return (ok != 0);
}
# https://github.com/mono/mono/issues/15021
-nomethod System.Reflection.Tests.AssemblyNameTests.Ctor_String_Invalid
-# Typename string differs
-# https://github.com/mono/mono/issues/15023
--nomethod System.Reflection.Tests.GetTypeTests.GetType_EmptyString
-
# Expected ArgumentException, but none was thrown
# https://github.com/mono/mono/issues/15024
-nomethod System.Reflection.Tests.MethodInfoTests.Invoke_OptionalParameterUnassingableFromMissing_WithMissingValue_ThrowsArgumentException
-nomethod System.Diagnostics.Tests.StackFrameTests.Ctor_SkipFrames_FNeedFileInfo
####################################################################
-## System.Drawing.Common.Tests
-####################################################################
-
-# Expects OOM, may be large array support?
-# https://github.com/mono/mono/issues/15189
--nomethod System.Drawing.Drawing2D.Tests.ColorBlendTests.Ctor_LargeCount_ThrowsOutOfMemoryException
--nomethod System.Drawing.Drawing2D.Tests.BlendTests.Ctor_LargeCount_ThrowsOutOfMemoryException
-
-####################################################################
## System.Numerics.Vectors.Tests
####################################################################
$(DOTNET) build sample/HelloWorld
MONO_ENV_OPTIONS="--debug" COMPlus_DebugWriteToStdErr=1 ./dotnet --fx-version "$(NETCOREAPP_VERSION)" sample/HelloWorld/bin/netcoreapp3.0/HelloWorld.dll
+run-sample-coreclr:
+ cd sample/HelloWorld && $(DOTNET) run
+
run-aspnet-sample: prepare
rm -rf sample/AspNetCore/{bin,obj}
$(DOTNET) publish sample/AspNetCore -c Debug -r $(RID)
if (name == null)
throw new ArgumentNullException (name);
if (name.Length == 0)
- throw new ArgumentException ("name", "Name cannot be empty");
+ throw new ArgumentException ("Name cannot be empty", nameof (name));
var res = InternalGetType (null, name, throwOnError, ignoreCase);
if (res is TypeBuilder) {
throw new ArgumentNullException (nameof (name));
if (name.Length == 0)
- throw new ArgumentException ("name", "Name cannot be empty");
+ throw new ArgumentException ("Name cannot be empty");
return InternalGetType (null, name, throwOnError, ignoreCase);
}
get;
}
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ static extern int InternalGetHashCode (object o);
+
public static int GetHashCode (object o)
{
- return Object.InternalGetHashCode (o);
+ return InternalGetHashCode (o);
}
public static new bool Equals (object? o1, object? o2)
[MethodImplAttribute (MethodImplOptions.InternalCall)]
protected extern object MemberwiseClone ();
- // TODO: Move to RuntimeHelpers
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- internal static extern int InternalGetHashCode (object o);
-
[Intrinsic]
internal ref byte GetRawData () => throw new NotImplementedException ();