Bug 2347 - ArrayAdapter<T>(..., T[]) constructor doesn't support value types.
Summary: ArrayAdapter<T>(..., T[]) constructor doesn't support value types.
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-12-05 16:34 UTC by Jonathan Pryor
Modified: 2012-04-30 16:20 UTC (History)
2 users (show)

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

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:

Description Jonathan Pryor 2011-12-05 16:34:08 UTC
Email thread:


The problem is that the ArrayAdapter<int>Context, int, int[]) constructor needs to convert the int[] into a Java.Lang.Object[], not a Java-side int[].
Comment 2 Jonathan Pryor 2011-12-12 16:40:22 UTC
A similar problem happens with:


As with the int[] case, we need to create a Java.Lang.Object[] to pass to Java code, and (similar to the int[] case) we don't know how to.
Comment 5 Jonathan Pryor 2012-04-30 16:20:26 UTC
Fixed in 288627d9.