a88a79cfc0
* [mtouch/mmp] Handle invalid types in BlockProxy attributes better. Fixes #4072. BlockProxy attributes may have types we don't expect, so handle those cases gracefully by showing a warning when we encounter them: testApp.cs(11): warning MT4175: The parameter 'completionHandler' in the method 'Issue4072Session.CreateDataTask(Foundation.NSUrl,Foundation.NSUrlSessionResponse)' has an invalid BlockProxy attribute (the type passed to the attribute does not have a 'Create' method). instead of an ugly MT0000: MTOUCH : error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com System.InvalidOperationException: Sequence contains no matching element at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00012] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/First.cs:30 at Registrar.StaticRegistrar.GetBlockProxyAttributeMethod (Mono.Cecil.MethodDefinition method, System.Int32 parameter) [0x00020] in /Users/builder/data/lanes/5944/7e782c1e/source/xamarin-macios/tools/common/StaticRegistrar.cs:4121 at Registrar.StaticRegistrar.GetBlockWrapperCreator (Registrar.Registrar+ObjCMethod obj_method, System.Int32 parameter) [0x00011] in /Users/builder/data/lanes/5944/7e782c1e/source/xamarin-macios/tools/common/StaticRegistrar.cs:4065 at Registrar.StaticRegistrar.Specialize (Registrar.AutoIndentStringBuilder sb, Registrar.Registrar+ObjCMethod method, System.Collections.Generic.List`1[T] exceptions) [0x0216b] in /Users/builder/data/lanes/5944/7e782c1e/source/xamarin-macios/tools/common/StaticRegistrar.cs:3683 at Registrar.StaticRegistrar.Specialize (Registrar.AutoIndentStringBuilder sb) [0x00f1e] in /Users/builder/data/lanes/5944/7e782c1e/source/xamarin-macios/tools/common/StaticRegistrar.cs:2963 Fixes #4072. * [docs] Improve text for MT4175. * [registrar] Comment some code. |
||
---|---|---|
.. | ||
mac | ||
ApiTest.cs | ||
Assert.cs | ||
AssertHelpers.cs | ||
BundlerTest.cs | ||
BundlerTool.cs | ||
ConditionalCompilation.cs | ||
Configuration.cs | ||
ExecutionHelper.cs | ||
MachO.cs | ||
MixedClassLibrary.dll | ||
PlatformInfo.cs | ||
ProductTests.cs | ||
Profile.cs | ||
TestRuntime.cs |