{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/2083","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/2083/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/2083/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/2083/events","html_url":"https://github.com/dotnet/corefx/pull/2083","id":89128431,"number":2083,"title":"Fix Exception type thrown in Vector<T> ctor and CopyTo methods","user":{"login":"mellinoe","id":8918977,"avatar_url":"https://avatars.githubusercontent.com/u/8918977?v=3","gravatar_id":"","url":"https://api.github.com/users/mellinoe","html_url":"https://github.com/mellinoe","followers_url":"https://api.github.com/users/mellinoe/followers","following_url":"https://api.github.com/users/mellinoe/following{/other_user}","gists_url":"https://api.github.com/users/mellinoe/gists{/gist_id}","starred_url":"https://api.github.com/users/mellinoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellinoe/subscriptions","organizations_url":"https://api.github.com/users/mellinoe/orgs","repos_url":"https://api.github.com/users/mellinoe/repos","events_url":"https://api.github.com/users/mellinoe/events{/privacy}","received_events_url":"https://api.github.com/users/mellinoe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/2%20-%20In%20Progress","name":"2 - In Progress","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-17T21:19:11Z","updated_at":"2015-06-17T23:21:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/2083","html_url":"https://github.com/dotnet/corefx/pull/2083","diff_url":"https://github.com/dotnet/corefx/pull/2083.diff","patch_url":"https://github.com/dotnet/corefx/pull/2083.patch"},"body":"When the methods below are handled specially by the JIT, a NullReferenceException is produced, rather than the ArgumentNullException we are throwing in IL. Conceptually, it makes more sense to throw an ArgumentNullException here, but that would degrade the JIT's performance as, currently, the constructor is doing very little work (should be as simple as a load/store instruction for some cases).\r\n\r\n* Vector\\<T\\>.ctor\r\n* Vector\\<T\\>.CopyTo\r\n* Vector2/3/4.CopyTo\r\n\r\nTo help diagnosability a bit, you will still get a reasonable exception message when using the IL version (so in Debug builds): \"The method was called with a null array argument.\"\r\n\r\nThoughts on this? It is possible we could go the other way, and have the JIT throw the ArgumentNullException.\r\n\r\n@CarolEidt , @nguerrera , @terrajobst "},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/112978510","html_url":"https://github.com/dotnet/corefx/pull/2083#issuecomment-112978510","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/2083","id":112978510,"user":{"login":"mellinoe","id":8918977,"avatar_url":"https://avatars.githubusercontent.com/u/8918977?v=3","gravatar_id":"","url":"https://api.github.com/users/mellinoe","html_url":"https://github.com/mellinoe","followers_url":"https://api.github.com/users/mellinoe/followers","following_url":"https://api.github.com/users/mellinoe/following{/other_user}","gists_url":"https://api.github.com/users/mellinoe/gists{/gist_id}","starred_url":"https://api.github.com/users/mellinoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellinoe/subscriptions","organizations_url":"https://api.github.com/users/mellinoe/orgs","repos_url":"https://api.github.com/users/mellinoe/repos","events_url":"https://api.github.com/users/mellinoe/events{/privacy}","received_events_url":"https://api.github.com/users/mellinoe/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T23:21:34Z","updated_at":"2015-06-17T23:21:34Z","body":"@dotnet-bot  Test this, please."}}