Jonathan Pobst
Jonathan Pobst
Context: https://github.com/xamarin/xamarin-android/pull/6750#discussion_r813115840 Workaround: https://github.com/xamarin/java.interop/wiki/Duplicate-Event-Handlers Previously we did some work to support multiple listener methods with the same name, which involved ensuring duplicate `EventArgs` types were not generated. This seems good,...
Workaround: https://github.com/xamarin/java.interop/wiki/Duplicate-Events Given a class which implements both an `addXXXListener` and a `setXXXListener` for the same listener, we will generate each event twice when doing the `Event implementation for` part....
Context: https://developercommunity.visualstudio.com/t/after-1656-my-project-wont-compile/1492830 When you try to publicly expose a class that is package private, we identify this case and expose it as JLO instead (actually the best base class that...
Context: https://github.com/xamarin/xamarin-android/issues/6203 Context: https://docs.microsoft.com/en-us/xamarin/android/troubleshooting/troubleshooting#javalangclasscastexception-monoandroidruntimejavaobject-cannot-be-cast-to Xamarin.Android 4.x doesn't properly marshal nested generic types properly. For example, consider the following C# code using SimpleExpandableListAdapter: ```csharp // BAD CODE; DO NOT USE var...
Context: https://github.com/xamarin/xamarin-android/issues/5027 Given this snippet: ``` package com.blah; import android.database.Cursor; public interface MyCursor extends Cursor { } ``` Compiling against API-29 succeeds, while API-30 fails with: ``` Error CS1026: )...
If `ApiXmlAdjuster` cannot resolve part of a method (return type, parameter type, etc), it removes the method from its containing type. However, if the containing type is an `interface` and...
Although it is debatable this was ever intended, if you give `generator` a `private` member it will bind it as `private`. This is a behavior that our users have used...
Context: https://github.com/xamarin/java.interop/pull/798#issuecomment-777920821 For interfaces that contain `static` `consts` or other members that traditionally could not be placed on a C# `interface` we create an `abstract class` with an `internal` constructor...