Bug 46250

Summary: Type.GetType with throwOnError true doesn't throw for a generic instance type with too few generic arguments
Product: [Mono] Runtime Reporter: Josh Peterson <joshuap>
Component: ReflectionAssignee: Aleksey Kliger <aleksey>
Status: RESOLVED FIXED    
Severity: normal CC: kumpera, mono-bugs+runtime
Priority: ---    
Version: master   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:

Description Josh Peterson 2016-11-01 18:50:52 UTC

    
Comment 1 Josh Peterson 2016-11-01 18:53:03 UTC
Here is the test case for this bug:

class Program
{
	public static void Main()
	{
		try
		{
			Console.WriteLine(Type.GetType("System.Collections.Generic.Dictionary`2[System.String]", true));
		}
		catch (ArgumentException)
		{
			Console.WriteLine(".NET throws an ArgumentException exception.");
		}
	}
}
Comment 3 Josh Peterson 2016-11-07 20:27:10 UTC
Thanks!