Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Have a look at AsyncTask's documentation:
In the section "AsyncTask's generic types" it says that one can use "Void" for type parameter's you don't need. But one can use neither "System.Void" nor (the not existing) Java.Lang.Void for type parameters.
Additionally the link to the Void type to be used is broken.
I forgot to mention that this issue makes using AsyncTask in MonoDroid quite complicated because:
1. You can't use "Void" for unneeded type parameters
2. You can't use "object" for unneeded type parameters (see bug 5980)
3. You can't use "Java.Lang.Object" for unneeded type parameters as this doesn't allow you to override "OnPostExecute()". (The compiler then says: "The inherited members 'Android.OS.AsyncTask<TParams,TProgress,TResult>.OnPostExecute(Java.Lang.Object)' and 'Android.OS.AsyncTask<TParams,TProgress,TResult>.OnPostExecute(TResult)' have the same signature in type 'MonoDroidUnit.GuiTestRunnerActivity.AsyncTestRunner', so they cannot be overridden")
(1) (missing Void) has been fixed in monodroid/39c46bc4 as part of Bug #12347.