This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 46250 - Type.GetType with throwOnError true doesn't throw for a generic instance type with too few generic arguments
Summary: Type.GetType with throwOnError true doesn't throw for a generic instance type...
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Reflection (show other bugs)
Version: master
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Aleksey Kliger
URL:
Depends on:
Blocks:
 
Reported: 2016-11-01 18:50 UTC by Josh Peterson
Modified: 2016-11-07 20:27 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

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!

Note You need to log in before you can comment on or make changes to this bug.