Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
When there are 2 methods with same name, one which takes a generic list as a parameter and the other one a regular list, the binding generator generates the helper static method twice.
Which results in the generated code ( gist @ https://gist.github.com/4389571 ) producing the following error: `Error CS0102: The type 'Facebook.Session.OpenRequest' already contains a definition for 'id_setPermissions_Ljava_util_List_' (CS0102)`
The generator should either have a different name for a generic list static variable, or keep track of variables it has already defined to avoid this problem.
I am sorry to take long time to reply, I thought it is part of new Facebook binding issue that should be fixed in the latest release.
This is actually twice generation of the same method but those two methods resulting in the same API signature and thus compile error. Since we cannot arbitrarily determine which of them should be "live", one of them needs to be explicitly removed by Metadata.xml using <remove-node> element by those who binds the Java API. They would be most likely identical operation in the end, but we cannot say it is always true.
(Things may become different if we make changes on how to bind collections, but this manual removal rule applies so far.)