Bug 1945 - Overriding AsyncTask<,,>.RunInBackground doesn't generate java stub.
Summary: Overriding AsyncTask<,,>.RunInBackground doesn't generate java stub.
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 1.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-08 12:05 UTC by Chris Hardy [MSFT]
Modified: 2012-01-06 13:22 UTC (History)
3 users (show)

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


Attachments
Test case from Bugzilla (343.78 KB, application/zip)
2011-11-08 13:15 UTC, Chris Hardy [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Chris Hardy [MSFT] 2011-11-08 12:05:34 UTC
Taken from Novell bug tracker here: https://bugzilla.novell.com/show_bug.cgi?id=690048

Users report invalid java generation when overriding RunInBackground on the
generic subclass of AsyncTask.  User reported:


I get a "Packaging Error" error stating that the class that I'm using to
subclass AsyncTask "is not abstract and does not override abstract method
doInBackground(java.lang.Object...) in android.os.AsyncTask". The error also
states:

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.


Reproducible: Always
Comment 1 Chris Hardy [MSFT] 2011-11-08 13:15:43 UTC
Created attachment 847 [details]
Test case from Bugzilla
Comment 2 Jonathan Pryor 2011-11-08 16:00:30 UTC
I'm unable to reproduce in master. Could someone try in 1.9.2?
Comment 3 Chris Hardy [MSFT] 2011-11-08 22:48:27 UTC
I've tried this example in 1.9.2 and it builds correctly

Please correct the status if I've marked it incorrectly.
Comment 4 Andreia Gaita 2012-01-06 13:22:57 UTC
Removing incorrect upstream status