Bug 18434 - Resources.Theme.ObtainStyledAttributes method has incorrect method signature in Xamarin Studio intellisense
Summary: Resources.Theme.ObtainStyledAttributes method has incorrect method signature ...
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.13.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-03-17 17:13 UTC by Ryan E
Modified: 2016-08-08 08:05 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED INVALID

Description Ryan E 2014-03-17 17:13:30 UTC
The actual method signature for the ObtainStyledAttributes method is (IAttributeSet set, int attrs, int defStyleAttr, int defStyleRes)

The official Android documentation and Xamarin intellisense shows it as (IAttributeSet set, int[] attrs, int defStyleAttr, int defStyleRes) which is mistaken

The compiler even properly detected that attrs is an 'int' not an 'int[]' and causes the build to fail. It is simply the documentation is wrong.
Comment 1 Ram Chandra 2014-03-19 07:38:10 UTC
I have checked  this issue and observed that the actual method signature for the ObtainStyledAttributes method is (IAttributeSet set, int[] attrs, int defStyleAttr, int defStyleRes) as mentioned in the official android document ("http://developer.android.com/reference/android/content/res/Resources.Theme.html#obtainStyledAttributes(android.util.AttributeSet, int[], int, int)") and if I try to change it from integer array to integer it gives compile time error. 

As per my understanding it is expected behavior. Please let me know if  I am missing anything.


Screencast: http://www.screencast.com/t/RzsjPyFZbjj

Environment:
Windows 7
Xamarin Studio 4.2.3 (build 60)
Xamarin.Android : 4.12.2 (Business Edition)

Build Information
Release ID: 402030060
30c4afc300c2a39ec5300851357ce02e49dd217e
Build date: 2014-03-05 16:53:54Z
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044
Comment 2 Atsushi Eno 2016-08-08 08:05:31 UTC
marking as INVALID (could be NORESPONSE either, but comment #1 seems to apply here).