Bug 25192 - Renaming a "property" method causes that method to no longer be wrapped as a property
Summary: Renaming a "property" method causes that method to no longer be wrapped as a ...
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 5.1
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-12-09 11:43 UTC by Dimitar Dobrev
Modified: 2016-08-08 07:48 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 NORESPONSE

Description Dimitar Dobrev 2014-12-09 11:43:11 UTC
Java code:

public class Parent
{
    public int getType() { return 0; }
}

Metadata.xml:

<attr
path="/api/package[@name='some.package']/class[@name='Parent']/method[@name='getType'
and count(parameter)=0]" name="managedName">Type_</attr>

Type_ is consequently wrapped as a method, not as a property which would've been the case had it not been renamed.
Comment 1 Ram Chandra 2015-07-07 09:54:10 UTC
I tried to reproduce this issue but I am not able to reproduce the reported behavior.  If you have a chance, it might also be helpful to include sample application, build information and IDE logs. 

You can get IDE logs form here:
Visual Studio => Help => About Microsoft Visual Studio => Copy Info

You can get IDE logs from here:
Visual Studio=> Help=> Xamarin => Zip Xamarin Logs ( attache the zip file)
Comment 2 Atsushi Eno 2016-08-08 07:48:03 UTC
marking as NORESPONSE.

Further comment on the solution: "propertyName" attribute is the one for property.

<attr
path="/api/package[@name='some.package']/class[@name='Parent']/method[@name='getType' and count(parameter)=0]" name="propertyName">Type_</attr>

It would have converted to Type property without any metadata fixup though.