Bug 14677 - Can't deploy my app due to a bug in AbsListView
Summary: Can't deploy my app due to a bug in AbsListView
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.8.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-09-12 05:32 UTC by guillaume.moissaing
Modified: 2013-09-20 13:44 UTC (History)
1 user (show)

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


Attachments
Sample project to reproduce the bug (9.66 KB, application/octet-stream)
2013-09-12 05:33 UTC, guillaume.moissaing
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 guillaume.moissaing 2013-09-12 05:32:59 UTC
Bug similar to this one https://bugzilla.xamarin.com/show_bug.cgi?id=1403
But when I inherit from AbsListView.

Compilation errors:
Error	1	 monoandroidapplication1.MyAdapter is not abstract and does not override abstract method setAdapter(android.widget.ListAdapter) in android.widget.AdapterView
public class MyAdapter
	MonoAndroidApplication1\MonoAndroidApplication1\MonoAndroidApplication1\obj\Debug\android\src\monoandroidapplication1\MyAdapter.java	4	8	MonoAndroidApplication1
Error	2	 getAdapter() in monoandroidapplication1.MyAdapter cannot override getAdapter() in android.widget.AdapterView; attempting to use incompatible return type
found   : android.widget.Adapter
required: android.widget.ListAdapter
	public android.widget.Adapter getAdapter ()
	MonoAndroidApplication1\MonoAndroidApplication1\MonoAndroidApplication1\obj\Debug\android\src\monoandroidapplication1\MyAdapter.java	61	32	MonoAndroidApplication1
Comment 1 guillaume.moissaing 2013-09-12 05:33:44 UTC
Created attachment 4852 [details]
Sample project to reproduce the bug
Comment 2 Jonathan Pryor 2013-09-17 12:38:51 UTC
Fixed in monodroid/2ed33c02.

As a workaround, inherit from ListView instead of AbsListView.
Comment 3 Jonathan Pryor 2013-09-20 13:44:46 UTC
Marking as Fixed as per Comment #2.